/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50 - (show annotations)
Fri Aug 17 13:09:11 2007 UTC (17 years, 6 months ago) by torsten
File size: 15557 byte(s)
Added xsl script for converting FormEd xml-tree to html

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26