1 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/plugins/plugin.py: Added a new kind |
4 |
|
of plug-in: Filter. They have a short and a long description |
5 |
|
and can be hooked automatically into the new 'Filters' |
6 |
|
sub menu under 'Extra'. They got called when the user |
7 |
|
selects their respective menu item. |
8 |
|
|
9 |
|
* tools/formed/formed/config.py: Contains the list of |
10 |
|
installed filters. |
11 |
|
|
12 |
|
* tools/formed/formed/main.py: Builds the Extra->Filters |
13 |
|
sub menu during gui initialization. The hard wired code |
14 |
|
for make unique and formular name/description -> name |
15 |
|
is removed because they are implemented as filters now. |
16 |
|
|
17 |
|
* tools/formed/formed/model/nodecomponents.py, |
18 |
|
tools/formed/formed/model/data.py: Removed the make |
19 |
|
unique and formular name/description -> name code. |
20 |
|
|
21 |
|
* tools/formed/formed/plugins/names, |
22 |
|
tools/formed/formed/plugins/names/__init__.py, |
23 |
|
tools/formed/formed/plugins/names/filter.py: Added. Contains |
24 |
|
the make unique and formular name/description -> name code |
25 |
|
in form of filters. |
26 |
|
|
27 |
|
* tools/formed/test-data/simple.xml: Modified to be a better |
28 |
|
test for the formular name/description -> name filter. |
29 |
|
|
30 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
31 |
|
|
32 |
|
* tools/formed/formed.py, tools/formed/formed/main.py: First |
33 |
|
command line argument is interpreted as filename of document |
34 |
|
to be loaded at program startup. |
35 |
|
|
36 |
|
2007-08-17 Frank Koormann <[email protected]> |
37 |
|
|
38 |
|
* contrib/convert-formedtree2html.xsl: |
39 |
|
Heading level depending on depth of group node. |
40 |
|
In case of radio/choice/check only list of options. |
41 |
|
|
42 |
|
2007-08-1/ Torsten Irlaender <[email protected]> |
43 |
|
|
44 |
|
* contrib/convert-formedtree2html.xsl: Output is now generated with |
45 |
|
HTML doc-string and charset information in the meta-header. |
46 |
|
|
47 |
|
2007-08-1/ Torsten Irlaender <[email protected]> |
48 |
|
|
49 |
|
* contrib/convert-formedtree2html.xsl: Added small script for |
50 |
|
exporting the formed tree to html |
51 |
|
|
52 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
53 |
|
|
54 |
|
* tools/formed/model/nodecomponents.py: Added function to rename |
55 |
|
the set the name of the node to the formularname. The formularname |
56 |
|
gets shorten to <=64 by removing vowels and is stored lowercase. |
57 |
|
If the name is not unique and additional id value is appended. |
58 |
|
|
59 |
|
* tools/formed/formed/model/data.py: Overwritten renaming-function for |
60 |
|
bool-leafs |
61 |
|
|
62 |
|
* tools/formed/formed/main.py: Added menuitem for renaming the names |
63 |
|
of the element |
64 |
|
|
65 |
|
2007-08-16 Sascha L. Teichmann <[email protected]> |
66 |
|
|
67 |
|
* tools/formed/formed/main.py: Swaped order of |
68 |
|
'Make names unique' and 'Selected mode...' in Extra |
69 |
|
menu and put a separator between them. |
70 |
|
|
71 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
72 |
|
|
73 |
|
* tools/formed/formed/model/data.py: SwitchNodes can add |
74 |
|
their modes to a given set now. |
75 |
|
|
76 |
|
* tools/formed/formed/plugins/plugin.py: Simplified |
77 |
|
the plug-in interface. Only the reference to the |
78 |
|
global configuration is passed at setup time. |
79 |
|
|
80 |
|
* tools/formed/formed/plugins/web/plugin.py: Adjusted |
81 |
|
to new plug-in setup. The traveral mode is now taken |
82 |
|
from the global configuration each time a rendering |
83 |
|
is triggered. The FORMED parameter is now named |
84 |
|
'doc.mode' instead of 'web.mode'. The parameter |
85 |
|
is not needed any more because it can be configured |
86 |
|
at runtime. |
87 |
|
|
88 |
|
* tools/formed/formed/main.py: Adjusted to new plugin |
89 |
|
setup. Added a new menu item Extra->Select Mode... |
90 |
|
to select the traversal mode. It is stored in the |
91 |
|
global config. |
92 |
|
|
93 |
|
* tools/formed/formed/config.py: Simplified. Only uses |
94 |
|
one env dictionary to store global configuration parameters. |
95 |
|
|
96 |
|
* tools/formed/formed/ui/controls.py: Add a control to |
97 |
|
select one item from a list of given strings. |
98 |
|
|
99 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
100 |
|
|
101 |
|
* tools/formed/formed/plugins/web/plugin.py, |
102 |
|
tools/formed/formed/plugins/web/renderer.py: Added parameter |
103 |
|
print out in web plugin. |
104 |
|
|
105 |
|
2007-08-15 Torsten Irlaender <[email protected]> |
106 |
|
|
107 |
|
* contrib/convert-formedtree2csv.xsl: Added small script for |
108 |
|
exporting the formed tree to csv |
109 |
|
|
110 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
111 |
|
|
112 |
|
* tools/formed/formed/model/data.py, |
113 |
|
tools/formed/formed/model/nodecomponents.py, |
114 |
|
tools/formed/formed/io/document.py: Added a 'switch' node. |
115 |
|
|
116 |
|
* tools/formed/formed/plugins/web/renderer.py:Render the |
117 |
|
new 'switch' node. |
118 |
|
|
119 |
|
* tools/formed/formed/plugins/web/plugin.py, |
120 |
|
tools/formed/formed/config.py: Added a 'web.mode' parameter |
121 |
|
to FORMED environment variable. |
122 |
|
e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. |
123 |
|
Defaults to 'default'. |
124 |
|
|
125 |
|
* tools/formed/test-data/simple.xml: Added test for switch. |
126 |
|
|
127 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
128 |
|
|
129 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
130 |
|
attribute 'formularname' to base class of node components. |
131 |
|
|
132 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
133 |
|
|
134 |
|
* tools/formed/formed/io/document.py, |
135 |
|
tools/formed/formed/model/data.py, |
136 |
|
tools/formed/formed/model/nodecomponents.py: Added an item |
137 |
|
to model external item lists. |
138 |
|
|
139 |
|
* tools/formed/formed/plugins/web/renderer.py: Render new item |
140 |
|
list. |
141 |
|
* tools/formed/formed/main.py: Added a forgotten 'self.' |
142 |
|
|
143 |
|
* contrib/extract-xfa-items.sh: Modified to generate |
144 |
|
documents to be loadable from new item lists |
145 |
|
|
146 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
147 |
|
|
148 |
|
* tools/formed/formed/main.py: Fixed typo |
149 |
|
|
150 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
151 |
|
|
152 |
|
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
153 |
|
choice item lists for a given field from XFA files. e.g. with |
154 |
|
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
155 |
|
|
156 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
157 |
|
|
158 |
|
* tools/formed/formed/model/data.py, |
159 |
|
tools/formed/formed/plugins/web/renderer.py, |
160 |
|
tools/formed/formed/io/document.py: Changed the structure |
161 |
|
of choice constructs. The idea to hold the different items |
162 |
|
of a particular choice in a semicolon separated list was bad. |
163 |
|
Now choices are groups and the option items are modelled as |
164 |
|
embedded bools. (mainly Torsten Irländer's idea). |
165 |
|
|
166 |
|
WARNING: this makes old document files containing choices incompatible!!! |
167 |
|
Use the following XSLT to reestablish compatibility. |
168 |
|
|
169 |
|
* contrib/itemize-choices.xsl: New converts old to new structure. |
170 |
|
Needs exslt.org's string extensions (which xsltproc includes) |
171 |
|
|
172 |
|
* tools/formed/test-data/simple.xml: Ajusted to new structure |
173 |
|
|
174 |
|
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
175 |
|
|
176 |
|
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
177 |
|
node finding code. It now uses the walk() generator, too. |
178 |
|
|
179 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
180 |
|
|
181 |
|
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
182 |
|
copies the currently selected item and appends it after the selection. |
183 |
|
|
184 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
185 |
|
of the tree. |
186 |
|
|
187 |
|
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
188 |
|
|
189 |
|
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
190 |
|
forgot a 'self.' prefix. |
191 |
|
|
192 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
193 |
|
|
194 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
195 |
|
a second document to the current. |
196 |
|
|
197 |
|
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
198 |
|
a second document to be appended to the current. |
199 |
|
|
200 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
201 |
|
|
202 |
|
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
203 |
|
a new document when triggered. |
204 |
|
|
205 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
206 |
|
|
207 |
|
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
208 |
|
items in the document tree. Added a method to eliminated duplicated names |
209 |
|
in document tree. |
210 |
|
|
211 |
|
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
212 |
|
after names collisions are eliminated. |
213 |
|
|
214 |
|
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
215 |
|
'Make names unique'. |
216 |
|
|
217 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
218 |
|
|
219 |
|
* tools/formed/formed/model/data.py, |
220 |
|
tools/formed/formed/plugins/web/renderer.py: Removed support |
221 |
|
for 'text' attributes in bool items. They were never really |
222 |
|
used and the 'description' attributes fulfill the same |
223 |
|
purpose. |
224 |
|
|
225 |
|
* contrib/remove-bool-text.xsl: Transform to remove the |
226 |
|
'text' attributes from bool items. Apply with: |
227 |
|
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
228 |
|
|
229 |
|
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
230 |
|
from bool items. |
231 |
|
|
232 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
233 |
|
|
234 |
|
* contrib/convert-choices.xsl: Simpified. |
235 |
|
|
236 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
237 |
|
|
238 |
|
* tools/formed/formed/model/data.py: Removed 'options' attribute |
239 |
|
from ChoiceLeaf. Use 'value' instead, please! |
240 |
|
|
241 |
|
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
242 |
|
instead of 'options' to render choices. |
243 |
|
|
244 |
|
* contrib/convert-choices.xsl: Added to convert document files |
245 |
|
which use the choice 'option' attribute to usage of 'value'. |
246 |
|
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
247 |
|
|
248 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
249 |
|
|
250 |
|
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
251 |
|
are selected by 'checked' and not by 'selected'. Fixed. |
252 |
|
|
253 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
2007-08-10 Sascha L. Teichmann <[email protected]> |
254 |
|
|
255 |
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
* tools/formed/formed/model/data.py: ChoiceLeafs are now |