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