/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26