1 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/model/nodecomponents.py: Added function to rename |
4 |
|
the set the name of the node to the formularname. The formularname |
5 |
|
gets shorten to <=64 by removing vowels and is stored lowercase. |
6 |
|
If the name is not unique and additional id value is appended. |
7 |
|
|
8 |
|
* tools/formed/formed/model/data.py: Overwritten renaming-function for |
9 |
|
bool-leafs |
10 |
|
|
11 |
|
* tools/formed/formed/main.py: Added menuitem for renaming the names |
12 |
|
of the element |
13 |
|
|
14 |
|
2007-08-16 Sascha L. Teichmann <[email protected]> |
15 |
|
|
16 |
|
* tools/formed/formed/main.py: Swaped order of |
17 |
|
'Make names unique' and 'Selected mode...' in Extra |
18 |
|
menu and put a separator between them. |
19 |
|
|
20 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
21 |
|
|
22 |
|
* tools/formed/formed/model/data.py: SwitchNodes can add |
23 |
|
their modes to a given set now. |
24 |
|
|
25 |
|
* tools/formed/formed/plugins/plugin.py: Simplified |
26 |
|
the plug-in interface. Only the reference to the |
27 |
|
global configuration is passed at setup time. |
28 |
|
|
29 |
|
* tools/formed/formed/plugins/web/plugin.py: Adjusted |
30 |
|
to new plug-in setup. The traveral mode is now taken |
31 |
|
from the global configuration each time a rendering |
32 |
|
is triggered. The FORMED parameter is now named |
33 |
|
'doc.mode' instead of 'web.mode'. The parameter |
34 |
|
is not needed any more because it can be configured |
35 |
|
at runtime. |
36 |
|
|
37 |
|
* tools/formed/formed/main.py: Adjusted to new plugin |
38 |
|
setup. Added a new menu item Extra->Select Mode... |
39 |
|
to select the traversal mode. It is stored in the |
40 |
|
global config. |
41 |
|
|
42 |
|
* tools/formed/formed/config.py: Simplified. Only uses |
43 |
|
one env dictionary to store global configuration parameters. |
44 |
|
|
45 |
|
* tools/formed/formed/ui/controls.py: Add a control to |
46 |
|
select one item from a list of given strings. |
47 |
|
|
48 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
49 |
|
|
50 |
|
* tools/formed/formed/plugins/web/plugin.py, |
51 |
|
tools/formed/formed/plugins/web/renderer.py: Added parameter |
52 |
|
print out in web plugin. |
53 |
|
|
54 |
|
2007-08-15 Torsten Irlaender <[email protected]> |
55 |
|
|
56 |
|
* contrib/convert-formedtree2csv.xsl: Added small script for |
57 |
|
exporting the formed tree to csv |
58 |
|
|
59 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
60 |
|
|
61 |
|
* tools/formed/formed/model/data.py, |
62 |
|
tools/formed/formed/model/nodecomponents.py, |
63 |
|
tools/formed/formed/io/document.py: Added a 'switch' node. |
64 |
|
|
65 |
|
* tools/formed/formed/plugins/web/renderer.py:Render the |
66 |
|
new 'switch' node. |
67 |
|
|
68 |
|
* tools/formed/formed/plugins/web/plugin.py, |
69 |
|
tools/formed/formed/config.py: Added a 'web.mode' parameter |
70 |
|
to FORMED environment variable. |
71 |
|
e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. |
72 |
|
Defaults to 'default'. |
73 |
|
|
74 |
|
* tools/formed/test-data/simple.xml: Added test for switch. |
75 |
|
|
76 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
77 |
|
|
78 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
79 |
|
attribute 'formularname' to base class of node components. |
80 |
|
|
81 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
82 |
|
|
83 |
|
* tools/formed/formed/io/document.py, |
84 |
|
tools/formed/formed/model/data.py, |
85 |
|
tools/formed/formed/model/nodecomponents.py: Added an item |
86 |
|
to model external item lists. |
87 |
|
|
88 |
|
* tools/formed/formed/plugins/web/renderer.py: Render new item |
89 |
|
list. |
90 |
|
* tools/formed/formed/main.py: Added a forgotten 'self.' |
91 |
|
|
92 |
|
* contrib/extract-xfa-items.sh: Modified to generate |
93 |
|
documents to be loadable from new item lists |
94 |
|
|
95 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
96 |
|
|
97 |
|
* tools/formed/formed/main.py: Fixed typo |
98 |
|
|
99 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
100 |
|
|
101 |
|
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
102 |
|
choice item lists for a given field from XFA files. e.g. with |
103 |
|
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
104 |
|
|
105 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
106 |
|
|
107 |
|
* tools/formed/formed/model/data.py, |
108 |
|
tools/formed/formed/plugins/web/renderer.py, |
109 |
|
tools/formed/formed/io/document.py: Changed the structure |
110 |
|
of choice constructs. The idea to hold the different items |
111 |
|
of a particular choice in a semicolon separated list was bad. |
112 |
|
Now choices are groups and the option items are modelled as |
113 |
|
embedded bools. (mainly Torsten Irländer's idea). |
114 |
|
|
115 |
|
WARNING: this makes old document files containing choices incompatible!!! |
116 |
|
Use the following XSLT to reestablish compatibility. |
117 |
|
|
118 |
|
* contrib/itemize-choices.xsl: New converts old to new structure. |
119 |
|
Needs exslt.org's string extensions (which xsltproc includes) |
120 |
|
|
121 |
|
* tools/formed/test-data/simple.xml: Ajusted to new structure |
122 |
|
|
123 |
|
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
124 |
|
|
125 |
|
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
126 |
|
node finding code. It now uses the walk() generator, too. |
127 |
|
|
128 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
129 |
|
|
130 |
|
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
131 |
|
copies the currently selected item and appends it after the selection. |
132 |
|
|
133 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
134 |
|
of the tree. |
135 |
|
|
136 |
|
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
137 |
|
|
138 |
|
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
139 |
|
forgot a 'self.' prefix. |
140 |
|
|
141 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
142 |
|
|
143 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
144 |
|
a second document to the current. |
145 |
|
|
146 |
|
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
147 |
|
a second document to be appended to the current. |
148 |
|
|
149 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
150 |
|
|
151 |
|
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
152 |
|
a new document when triggered. |
153 |
|
|
154 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
155 |
|
|
156 |
|
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
157 |
|
items in the document tree. Added a method to eliminated duplicated names |
158 |
|
in document tree. |
159 |
|
|
160 |
|
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
161 |
|
after names collisions are eliminated. |
162 |
|
|
163 |
|
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
164 |
|
'Make names unique'. |
165 |
|
|
166 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
167 |
|
|
168 |
|
* tools/formed/formed/model/data.py, |
169 |
|
tools/formed/formed/plugins/web/renderer.py: Removed support |
170 |
|
for 'text' attributes in bool items. They were never really |
171 |
|
used and the 'description' attributes fulfill the same |
172 |
|
purpose. |
173 |
|
|
174 |
|
* contrib/remove-bool-text.xsl: Transform to remove the |
175 |
|
'text' attributes from bool items. Apply with: |
176 |
|
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
177 |
|
|
178 |
|
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
179 |
|
from bool items. |
180 |
|
|
181 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
182 |
|
|
183 |
|
* contrib/convert-choices.xsl: Simpified. |
184 |
|
|
185 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
186 |
|
|
187 |
|
* tools/formed/formed/model/data.py: Removed 'options' attribute |
188 |
|
from ChoiceLeaf. Use 'value' instead, please! |
189 |
|
|
190 |
|
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
191 |
|
instead of 'options' to render choices. |
192 |
|
|
193 |
|
* contrib/convert-choices.xsl: Added to convert document files |
194 |
|
which use the choice 'option' attribute to usage of 'value'. |
195 |
|
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
196 |
|
|
197 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
198 |
|
|
199 |
|
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
200 |
|
are selected by 'checked' and not by 'selected'. Fixed. |
201 |
|
|
202 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
203 |
|
|
204 |
|
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
205 |
|
initialized with size = 1. |
206 |
|
|
207 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
208 |
|
|
209 |
|
* tools/formed/formed/model/data.py: TextLeafs are now |
210 |
|
initialized with size = 40, maxlength = 60 |
211 |
|
|
212 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
213 |
|
|
214 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
215 |
|
are renderered with description now. |
216 |
|
|
217 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
218 |
|
|
219 |
|
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
220 |
|
for date items. Added missing ids for texts and textareas. |
221 |
|
|
222 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
223 |
|
|
224 |
|
* tools/formed/formed/config.py: Evaluate the environment |
225 |
|
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
226 |
|
|
227 |
|
* tools/formed/formed/plugins/plugin.py: Give a reference |
228 |
|
to the config at setup time. |
229 |
|
|
230 |
|
* tools/formed/formed/plugins/web/plugin.py: To determine |
231 |
|
the port look at FORMED dictionary first. Key is 'web.port'. |
232 |
|
e.g. FORMED='web.port:8888' |
233 |
|
|
234 |
|
* tools/formed/formed/main.py: Call the plugin setup with |
235 |
|
the reference to the config. |
236 |
|
|
237 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
238 |
|
|
239 |
|
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
240 |
|
info tags. Use the 'value' attributes for same purpose now, please! |
241 |
|
|
242 |
|
* tools/formed/formed/model/data.py: removed text attributes from |
243 |
|
InfoLeaf. |
244 |
|
|
245 |
|
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
246 |
|
now uses the 'value' instead of the 'text' attributes. |
247 |
|
|
248 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
249 |
|
|
250 |
|
* tools/formed/formed/model/data.py: next/prevPage() are |
251 |
|
methods of PageNode now. |
252 |
|
|
253 |
|
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
254 |
|
is method of Document now. |
255 |
|
|
256 |
|
* tools/formed/formed/plugins/web/plugin.py: Factored out |
257 |
|
the HTML renderer. |
258 |
|
|
259 |
|
* tools/formed/formed/plugins/web/renderer.py: New: contains |
260 |
|
the HTML renderer now. |
261 |
|
|
262 |
|
* tools/formed/test-data/simple.xml: Fixed typo |
263 |
|
|
264 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
265 |
|
|
266 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
267 |
|
in calculation of width of bounded int fields. |
268 |
|
|
269 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
270 |
|
|
271 |
|
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
272 |
|
|
273 |
|
* tools/formed/formed/model/data.py: Added attributes to IntLeaf |
274 |
|
|
275 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering for |
276 |
|
Ints |
277 |
|
|
278 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
279 |
|
|
280 |
|
* tools/formed/test-data/simple.xml: Added demo textarea |
281 |
|
|
282 |
|
* tools/formed/formed/model/data.py: Added TextAreaLeaf |
283 |
|
|
284 |
|
* tools/formed/formed/io/document.py: register builder |
285 |
|
for loading of textareas |
286 |
|
|
287 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
288 |
|
for textareas. |
289 |
|
|
290 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
291 |
|
|
292 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
293 |
|
|
294 |
|
* tools/formed/formed/model/data.py: Added attributes for texts |
295 |
|
|
296 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
297 |
|
for texts |
298 |
|
|
299 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
300 |
|
|
301 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
302 |
|
|
303 |
|
* tools/formed/formed/model/data.py: Added attributes for choices. |
304 |
|
|
305 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
306 |
|
for choices |
307 |
|
|
308 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
309 |
|
|
310 |
|
* tools/formed/formed/model/data.py, |
311 |
|
tools/formed/formed/model/nodecomponents.py: Added new |
312 |
|
attributes. |
313 |
|
|
314 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
315 |
|
for checkboxes and radio buttons. |
316 |
|
|
317 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
318 |
|
|
319 |
|
* tools/formed/test-data/simple.xml: Added some descriptions |
320 |
|
|
321 |
|
* tools/formed/formed/model/data.py: set attributes in constructors |
322 |
|
directly. |
323 |
|
|
324 |
|
* tools/formed/formed/model/nodecomponents.py: Added description |
325 |
|
attribute in the NodeComponent base class. |
326 |
|
|
327 |
|
* tools/formed/formed/plugins/web/plugin.py: Render description |
328 |
|
as legend in fieldset for GroupNodes. |
329 |
|
|
330 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
331 |
|
|
332 |
|
* tools/formed/formed/plugins/web/plugin.py: make UTF-8 |
333 |
|
output work. |
334 |
|
|
335 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
336 |
|
|
337 |
|
* tools/formed/formed/model/data.py: Added get/setText() method |
338 |
|
|
339 |
|
* tools/formed/formed/plugins/web/plugin.py: Added a first |
340 |
|
version of a recursive HTML renderer based on the document |
341 |
|
tree. |
342 |
|
|
343 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
344 |
|
|
345 |
|
* tools/formed/formed/plugins/*: New: plug-in infrastructure. |
346 |
|
|
347 |
|
* tools/formed/formed/plugins/web/*: new: A simple web server |
348 |
|
which is intended to serve pages of the current formular. |
349 |
|
|
350 |
|
* tools/formed/formed/main.py: start the plug-ins |
351 |
|
|
352 |
|
* tools/formed/formed/config.py: configuration class. Used |
353 |
|
for the plug-ins. |
354 |
|
|
355 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
356 |
|
|
357 |
|
* tools/formed/formed/model/nodecomponents.py: Fixed broadcasting |
358 |
|
issue with zero length tree paths. |
359 |
|
|
360 |
|
* tools/formed/formed/model/misc.py: New: contains a class |
361 |
|
for generating unique ids. |
362 |
|
|
363 |
|
* tools/formed/formed/main.py: Added an instance of an |
364 |
|
unique id generator for naming of new made tree items. |
365 |
|
|
366 |
|
2007-08-07 Sascha L. Teichmann <[email protected]> |
367 |
|
|
368 |
|
* tools/formed/formed/main.py: Added event route document -> |
369 |
|
attribute table to get informed when selected item is delete |
370 |
|
or an attribute is changed from the outside. |
371 |
|
|
372 |
|
* tools/formed/formed/ui/controls.py: Fixed. In older versions of |
373 |
|
wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead |
374 |
|
of 3 argument. Uses icons+tooltips for tree navigation now. |
375 |
|
|
376 |
2007-08-07 Sascha L. Teichmann <[email protected]> |
2007-08-07 Sascha L. Teichmann <[email protected]> |
377 |
|
|
378 |
* tools/formed/formed/model/nodecomponents.py: Set name |
* tools/formed/formed/model/nodecomponents.py: Set name |