/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26