/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26