/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26