/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 126 - (show annotations)
Mon Sep 3 08:06:19 2007 UTC (17 years, 5 months ago) by frank
File size: 36567 byte(s)
* tools/formed/formed/plugins/export/html.py: Export Choice option 
	as simple list instead of collection of bools.

1 2007-09-03 Frank Koormann <[email protected]>
2
3 * tools/formed/formed/model/nodecomponents.py
4 (NodeComponent.getParent): New method to get node components parent.
5
6 * tools/formed/formed/plugins/export/html.py: Export Choice option
7 as simple list instead of collection of bools.
8
9 2007-09-02 Sascha L. Teichmann <[email protected]>
10
11 * tools/formed/formed/model/persistent.py: Interfaces to abstract
12 from persistent storage details.
13
14 * tools/formed/formed/model/memory.py: In core implementation
15 of the persistent interfaces.
16
17 * tools/formed/formed/main.py: Holds a memory data store now.
18
19 2007-09-02 Sascha L. Teichmann <[email protected]>
20
21 * tools/formed/formed/plugins/export/sql.py,
22 tools/formed/formed/plugins/export/html.py: Fixed constructor chains
23 for FileDialogFilter sub classes.
24
25 2007-09-02 Sascha L. Teichmann <[email protected]>
26
27 * tools/formed/formed/model/misc.py: Checking the mode in recursive
28 tree traversals is a common task. To ease this a decorator function
29 checkMode in union with sub classing ModeChecker can be used.
30 To make it work simply subclass from ModeChecker and add the decorator
31 to the methods that need mode tracking. Before you start the recursion
32 call self.prepareDescent().
33
34 * tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme
35 now which replace the old. TODO: Make the web renderer use the new scheme
36 too.
37
38 2007-09-02 Sascha L. Teichmann <[email protected]>
39
40 * tools/formed/formed/plugins/export/sql.py: Removed needless import.
41
42 * tools/formed/formed/plugins/export/html.py: HTML table exporter
43 uses new FileDialogFilter base class too.
44
45 2007-09-02 Sascha L. Teichmann <[email protected]>
46
47 * tools/formed/formed/plugins/ui/*: New. All file exporters
48 need a file dialog. Till now each of them pulled up its
49 own. This was silly code replication. Now there is an abstract
50 base class 'FileDialogFilter' which implements the common
51 behavior. The file exporters should subclass it.
52
53 * tools/formed/formed/plugins/export/sql.py: Subclass the SQL
54 exporters from the new base class. TODO: Subclass the HTML
55 exporter too.
56
57 2007-08-31 Sascha L. Teichmann <[email protected]>
58
59 * tools/formed/formed/plugins/export/html.py: Make mode check
60 work (again).
61
62 2007-08-31 Torsten Irlaender <[email protected]>
63
64 * tools/formed/formed/plugins/export/html.py: Rendering of the HTML
65 exprt works now in a recursive way. This change was needed because
66 the structure of the formedtree has changed to be able to render
67 full hirachically document stuctures. (nested lists)
68 TODO: Fix modechecking
69
70 2007-08-31 Torsten Irlaender <[email protected]>
71
72 * tools/formed/formed/plugins/web/plugin.py: Navigation rendering works
73 now in recursive way. This change was needed because the structure
74 of the formedtree has changed to be able to render full hirachically
75 document stuctures. (nested lists)
76
77 2007-08-31 Sascha L. Teichmann <[email protected]>
78
79 * tools/formed/formed/model/nodecomponents.py: use discard()
80 instead of remove on sets.
81
82 * tools/formed/formed/plugins/export/sql.py: Added an
83 exporter for table views.
84
85 * tools/formed/formed/config.py: Added the new exporter
86 to the list of export filters.
87
88 2007-08-30 Sascha L. Teichmann <[email protected]>
89
90 * tools/formed/formed/model/data.py: Fixed a bug in
91 Page.allWidgets()
92
93 * tools/formed/formed/plugins/export/sql.py: Added an exporter
94 for stored procudeures.
95
96 * tools/formed/formed/config.py: Add the new SP exporter.
97
98 2007-08-29 Torsten Irlaender <[email protected]>
99
100 * tools/formed/formed/plugins/web/plugin.py,
101 tools/formed/formed/plugins/web/error_renderer.py: Added interface
102 to get the errors for a whole page in te formular. These errors can
103 now be displayed on the top of the formular.
104
105 2007-08-29 Torsten Irlaender <[email protected]>
106
107 * tools/formed/formed/plugins/web/renderer.py: Finished implementation
108 of the getFromData interface and prepared the rederer for generating
109 nice error messages
110
111 2007-08-28 Frank Koormann <[email protected]>
112
113 * tools/formed/formed/plugins/export/sql.py
114 (SchemaCreator.createSchema, SchemaCreator._createGroup):
115 Fixed typo in created DDS (PRIMRAY -> PRIMARY)
116
117 2007-08-28 Torsten Irlaender <[email protected]>
118
119 * tools/formed/formed/plugins/export/sql.py: Added small helper
120 function to generated valid quotes within the sql statements
121
122 2007-08-29 Sascha L. Teichmann <[email protected]>
123
124 * tools/formed/formed/plugins/export/sql.py: Added foreign keys
125 for repeat tables.
126
127 2007-08-29 Sascha L. Teichmann <[email protected]>
128
129 * tools/formed/formed/plugins/export/sql.py: When generating
130 an extra table check in a table of same content exists. In
131 this case reference the existing table.
132
133 2007-08-29 Sascha L. Teichmann <[email protected]>
134
135 * tools/formed/formed/plugins/export/sql.py: Rewritten to produce
136 _real_ SQL and respect repeat groups.
137
138 * tools/formed/formed/model/data.py: Fixed bug with Group.isRepeat()
139
140 * tools/formed/formed/plugins/web/renderer.py: Use "".join([])
141 instead of expensive += string concat in some places.
142
143 2007-08-29 Sascha L. Teichmann <[email protected]>
144
145 * tools/formed/formed/model/data.py: Renamed GroupNode.getRepeat()
146 to .isRepeat and return a bool. Fixed a bug in Page.allWidgets().
147
148 2007-08-28 Torsten Irlaender <[email protected]>
149
150 * tools/formed/plugins/web/renderer.py: Added Formdata interface.
151 * tools/formed/model/data.py: Implements Formadata interface to
152 textfields. Fieldset generated depends now on the "invisible"
153 attribute of the groupnode. Field-label generation slightly changed.
154 Added error indication to textfields
155
156 2007-08-28 Sascha L. Teichmann <[email protected]>
157
158 * tools/formed/formed/model/data.py,
159 tools/formed/formed/io/document.py: Removed support
160 of logical groups.
161
162 2007-08-28 Sascha L. Teichmann <[email protected]>
163
164 * tools/formed/formed/io/document.py: Avoid saving empty
165 attributes.
166
167 * tools/formed/test-data/simple.xml: Applied.
168
169 2007-08-28 Sascha L. Teichmann <[email protected]>
170
171 * tools/formed/formed/model/data.py: Added 'repeat' and
172 'invisible' attributes to group. TODO: remove logical group.
173
174 2007-08-27 Torsten Irlaender <[email protected]>
175
176 * tools/formed/plugins/web/plugin.py,
177 tools/formed/plugins/web/renderer.py: Started to include stylesheet
178 depending tags in the html generation.
179
180 2007-08-27 Sascha L. Teichmann <[email protected]>
181
182 * tools/formed/formed/model/data.py,
183 tools/formed/formed/io/document.py: Added a logical group.
184 It has an attribute 'repeat' to indicate that it might
185 be worthy an external table in DB schema.
186
187 2007-08-27 Sascha L. Teichmann <[email protected]>
188
189 * tools/formed/formed/plugins/web/plugin.py: Support
190 serving of static content.
191
192 * tools/formed/formed/plugins/web/server.py: Removed
193 old send code.
194
195 2007-08-27 Sascha L. Teichmann <[email protected]>
196
197 * tools/formed/formed/plugins/web/plugin.py: Use new
198 Response object. Fix typo.
199
200 * tools/formed/formed/plugins/web/server.py: support
201 response object to serve different MIME types.
202
203 2007-08-27 Sascha L. Teichmann <[email protected]>
204
205 * tools/formed/formed/plugins/web/plugin.py: Add web.path
206 to FORMED environment variable to specify the
207 root of the static content.
208
209 2007-08-26 Sascha L. Teichmann <[email protected]>
210
211 * tools/formed/formed/model/data.py,
212 tools/formed/formed/model/nodecomponents.py: Fixed mode issues.
213
214 * tools/formed/formed/plugins/web/www,
215 tools/formed/formed/plugins/web/www/main.tmpl: New. Contains
216 a template for the HTML output.
217
218 * tools/formed/formed/plugins/web/plugin.py: Fixes several smaller
219 mode issues. Introduces CSS support. Simplified the action
220 handling.
221
222 * tools/formed/formed/plugins/web/renderer.py: Removed the
223 nagivation code.
224
225 * tools/formed/formed/plugins/web/server.py: Added missing import.
226
227 2007-08-26 Sascha L. Teichmann <[email protected]>
228
229 * tools/formed/formed/model/data.py: Added missing broadcast
230 parameter to setAttribute() of RuleLeaf.
231
232 * tools/formed/formed/plugins/web/plugin.py: Factorize
233 HTTP server code out to separate module.
234
235 * tools/formed/formed/plugins/web/renderer.py: Removed
236 needless -1 from pop()
237
238 * tools/formed/formed/plugins/web/server.py: New. Contains
239 the HTTP server code now.
240
241 2007-08-26 Sascha L. Teichmann <[email protected]>
242
243 * tools/formed/test-data/simple.xml: Modified to contain a rule.
244
245 * tools/formed/formed/model/expr.py: Added. A simple RPN
246 expression evaluator. To avoid the problem of eval()ing
247 arbitrary python expressions I've decided to use a very
248 basic and limited stack machine to support rule checking.
249
250 * tools/formed/formed/model/data.py: Added a RuleLeaf.
251
252 * tools/formed/formed/io/document.py: Added factories for rules.
253
254 * tools/formed/formed/model/nodecomponents.py: Add a method
255 to find all items of a given type in document for a given
256 mode. Usefull to find all rules in the tree.
257
258 * tools/formed/formed/ui/controls.py: Added a listener mechanism
259 to attribute table to report exceptions when setting a value
260 from GUI. Useful to report compilation errors when setting
261 expr of rule leafs.
262
263 * tools/formed/formed/main.py: Added a method to track exceptions
264 from the attribute table and pop up dialogs if they occur.
265 Added a counter of rule modifications in tree. Useful if you
266 want build cached data structures like rule sets and you want
267 to know if they are still valid.
268
269 2007-08-24 Torsten Irlaender <[email protected]>
270
271 * tools/formed/formed/plugins/export/sql.py: Fixed CHECK-constraint
272 for checkbox values. (Syntax error).
273
274 * tools/formed/formed/plugins/names/filter.py: Fixes in formularname
275 generation
276
277 2007-08-24 Torsten Irlaender <[email protected]>
278
279 * tools/formed/formed/plugins/names/filter.py: Separated Class for
280 making the formularnames more database friendly. Added some more
281 checks.
282 * tools/formed/formed/plugins/export/sql.py: Make use of the fresh
283 separated class, and some fixes in sql generation.
284
285 2007-08-24 Sascha L. Teichmann <[email protected]>
286
287 * tools/formed/formed/plugins/export/html.py: Print lengths
288 of external choice list.
289
290 2007-08-24 Sascha L. Teichmann <[email protected]>
291
292 * tools/formed/formed/main.py: Little workaround for
293 mode selection if someone adds an removes a mode.
294
295 2007-08-24 Sascha L. Teichmann <[email protected]>
296
297 * tools/formed/test-data/simple.xml: Better test case for
298 mode depended leaf items.
299
300 * tools/formed/formed/model/nodecomponents.py: Added a method
301 to calculate the effective mode of an item.
302
303 * tools/formed/formed/plugins/export/html.py: Use effective
304 mode. TODO: the 'all' modus return false results sometimes.
305 Cause: The modes are only cumulated over time. Removal is
306 not done.
307
308 2007-08-24 Sascha L. Teichmann <[email protected]>
309
310 * tools/formed/formed/plugins/export/html.py: Dump the items
311 of radio groups and choices too.
312
313 2007-08-24 Torsten Irlaender <[email protected]>
314
315 * tools/formed/formed/plugins/names/filter.py: Modified the renaming
316 by formular names to make the naming more database friendly.
317 Now only alphanumeric and underscore chars is allowed.
318
319 2007-08-24 Sascha L. Teichmann <[email protected]>
320
321 * tools/formed/formed/plugins/export/html.py: Tweaked
322 HTML table exporter a bit to be on par with the XSLT
323 script. TODO: Dump items in radio and choice groups.
324
325 2007-08-23 Sascha L. Teichmann <[email protected]>
326
327 * tools/formed/formed/plugins/names/filter.py: Removed
328 HTML and SQL exporters.
329
330 * tools/formed/formed/plugins/export,
331 tools/formed/formed/plugins/export/__init__.py,
332 tools/formed/formed/plugins/export/sql.py,
333 tools/formed/formed/plugins/export/html.py: New: Contain
334 the HTML and the SQL exporters now.
335
336 * tools/formed/formed/config.py: Use exporters from different
337 package now.
338
339 2007-08-23 Torsten Irlaender <[email protected]>
340
341 * tools/formed/formed/plugins/names/filter.py: Added an
342 pseudo SQL export filters. TODO: Move HTML and SQL filter
343 in a new file (formed/plugins/export/htmlexport.py and
344 sqlexport.py?)
345
346 * tools/formed/formed/config.py: Install the new SQL filter.
347
348 2007-08-23 Sascha L. Teichmann <[email protected]>
349
350 * tools/formed/formed/model/nodecomponents.py: Added a depth()
351 method to determine the depth of particular tree item.
352
353 * tools/formed/formed/plugins/names/filter.py: Added an
354 HTML export filters. TODO: needs more work.
355
356 * tools/formed/formed/config.py: Install the new HTML filter.
357
358 2007-08-23 Torsten Irlaender <[email protected]>
359
360 * contrib/extract-xfa-fields_and_options.xsl: Added small xsl script
361 to extract fields and options in the XFA Data in teh PDF. This
362 script might me handy to indicate changes between the different
363 formular versions.
364
365 2007-08-23 Sascha L. Teichmann <[email protected]>
366
367 * tools/formed/formed/main.py: Add an 'all' mode to
368 select all modes. ;-)
369
370 2007-08-22 Sascha L. Teichmann <[email protected]>
371
372 * tools/formed/test-data/simple.xml,
373 tools/formed/formed/model/data.py,
374 tools/formed/formed/plugins/web/plugin.py,
375 tools/formed/formed/plugins/web/renderer.py,
376 tools/formed/formed/io/document.py,
377 tools/formed/formed/main.py: Removed support for switch nodes.
378 BEWARE: This breaks compatibility with older documents!
379
380 2007-08-22 Sascha L. Teichmann <[email protected]>
381
382 * tools/formed/formed/plugins/web/plugin.py: Uses the
383 getSelectedMode() from main now.
384
385 * tools/formed/formed/main.py: selected mode is now hold
386 in main.
387
388 * tools/formed/formed/config.py: removed selected mode from
389 env configuration.
390
391 2007-08-22 Sascha L. Teichmann <[email protected]>
392
393 * tools/formed/formed/ui/controls.py: Attributes in GUI attribute
394 table are now alphabetically sorted.
395
396 2007-08-22 Sascha L. Teichmann <[email protected]>
397
398 * tools/formed/formed/model/nodecomponents.py: Added code to
399 establish the new 'modes' recursively.
400
401 * tools/formed/formed/plugins/plugin.py: Pass main instead
402 of cfg on plug-in start-up.
403
404 * tools/formed/formed/plugins/web/plugin.py: Use the new
405 'modes' attribute for rendering.
406
407 * tools/formed/formed/plugins/web/renderer.py: Use decorators
408 to check the new modes.
409
410 * tools/formed/formed/main.py: Adjusted to new infrastructure.
411
412 2007-08-22 Sascha L. Teichmann <[email protected]>
413
414 * tools/formed/formed/model/nodecomponents.py: Added an
415 attribute 'modes' to NodeComponents.
416
417 2007-08-22 Sascha L. Teichmann <[email protected]>
418
419 * tools/formed/formed/model/data.py: Small cosmetic cleanups
420
421 2007-08-21 Sascha L. Teichmann <[email protected]>
422
423 * tools/formed/formed/plugins/web/renderer.py: Another fix
424 for the hidden field. Argh!
425
426 2007-08-21 Sascha L. Teichmann <[email protected]>
427
428 * tools/formed/formed/plugins/web/renderer.py: Fixed double
429 generation of hidden page field.
430
431 2007-08-21 Sascha L. Teichmann <[email protected]>
432
433 * tools/formed/formed/plugins/web/semantic.py: Added semantic
434 checks for radio groups.
435
436 2007-08-21 Sascha L. Teichmann <[email protected]>
437
438 * tools/formed/formed/plugins/web/semantic.py: Added semantic
439 checks for choices.
440
441 2007-08-21 Frank Koormann <[email protected]>
442
443 * contrib/convert-formedtree2html.xsl: Display switch nodes as
444 alternatives.
445
446 2007-08-21 Frank Koormann <[email protected]>
447
448 * contrib/convert-formedtree2html.xsl:
449 Replace technical types with readable descriptions
450
451 2007-08-21 Sascha L. Teichmann <[email protected]>
452
453 * tools/formed/formed/plugins/web/plugin.py: Fix a few smaller
454 issues. 'action' looks for all widgets on a page now, goes
455 through all passed parameters, tries to match them with the
456 widgets of the page and put them into the semantic box.
457 Afterwards a list of untouched page parameters are left
458 which will be deleted from the semantic box.
459
460 * tools/formed/formed/plugins/web/semantic.py: Simplified.
461 The NodeComponent is passed as an argument now.
462
463 * tools/formed/formed/plugins/web/renderer.py: Generate a
464 hidden field to store the name of the page.
465
466 2007-08-21 Sascha L. Teichmann <[email protected]>
467
468 * tools/formed/formed/plugins/web/plugin.py: Fixed an encoding
469 issue with incoming UTF-8 data.
470
471 2007-08-21 Sascha L. Teichmann <[email protected]>
472
473 * tools/formed/test-data/simple.xml: Improve test for widgets
474 in switches.
475
476 * tools/formed/formed/model/data.py: Added a method to find all
477 widgets in a given page. Fixed a bug when walking in switch
478 with a given mode.
479
480 * tools/formed/formed/plugins/web/plugin.py: Simple test for
481 listing all widgets in page.
482
483 2007-08-21 Torsten Irlaender <[email protected]>
484
485 * tools/formed/formed/plugins/names/filter.py: Fixed file-encoding to
486 latin-1
487
488 2007-08-21 Sascha L. Teichmann <[email protected]>
489
490 * tools/formed/formed/model/data.py: Added mode parameter to
491 walk.
492
493 * tools/formed/formed/model/nodecomponents.py: SwitchNode overwrites
494 walk() with usage of the new mode parameter. Added a method to
495 give children in a given mode.
496
497 * tools/formed/formed/plugins/web/renderer.py: Simplified to use
498 new Switch.childrenInMode() method.
499
500 2007-08-21 Sascha L. Teichmann <[email protected]>
501
502 * tools/formed/formed/plugins/web/semantic.py: Add checks for
503 texts and text areas.
504
505 * tools/formed/formed/plugins/web/renderer.py: Set accept-charset
506 to UTF-8 in generated form.
507
508 2007-08-20 Sascha L. Teichmann <[email protected]>
509
510 * tools/formed/formed/plugins/web/semantic.py: Added semantic
511 tests for dates.
512
513 2007-08-20 Sascha L. Teichmann <[email protected]>
514
515 * tools/formed/test-data/simple.xml: Tweak a bit for integer
516 range test.
517
518 * tools/formed/formed/model/nodecomponents.py: Added a method
519 to find a tree item for a given name.
520
521 * tools/formed/formed/plugins/web/semantic.py: New: Box for
522 semantic checking. Has check for integers.
523
524 * tools/formed/formed/plugins/web/plugin.py: Use semantic
525 check.
526
527 2007-08-20 Torsten Irlaender <[email protected]>
528
529 * tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in
530 selection-field generation (Removed quote)
531
532 2007-08-18 Sascha L. Teichmann <[email protected]>
533
534 * tools/formed/formed/plugins/web/plugin.py,
535 tools/formed/formed/plugins/web/renderer.py: Added a
536 simple cookie based session management to the HTML
537 renderer. This submit parameters are stored in the
538 session now. This will ease testing the constraint
539 tests which need to be written soon.
540
541 BEWARE: The session management is _not_ made for production!
542 Denial of service attacks are too easy, and the
543 cryptographical strength of the session id is doubtful.
544
545 2007-08-18 Sascha L. Teichmann <[email protected]>
546
547 * tools/formed/formed/plugins/web/renderer.py: Escaping text
548 coming from the document tree now when inserting it into the
549 HTML output.
550
551 2007-08-18 Sascha L. Teichmann <[email protected]>
552
553 * tools/formed/formed/plugins/plugin.py: Added a new kind
554 of plug-in: Filter. They have a short and a long description
555 and can be hooked automatically into the new 'Filters'
556 sub menu under 'Extra'. They got called when the user
557 selects their respective menu item.
558
559 * tools/formed/formed/config.py: Contains the list of
560 installed filters.
561
562 * tools/formed/formed/main.py: Builds the Extra->Filters
563 sub menu during gui initialization. The hard wired code
564 for make unique and formular name/description -> name
565 is removed because they are implemented as filters now.
566
567 * tools/formed/formed/model/nodecomponents.py,
568 tools/formed/formed/model/data.py: Removed the make
569 unique and formular name/description -> name code.
570
571 * tools/formed/formed/plugins/names,
572 tools/formed/formed/plugins/names/__init__.py,
573 tools/formed/formed/plugins/names/filter.py: Added. Contains
574 the make unique and formular name/description -> name code
575 in form of filters.
576
577 * tools/formed/test-data/simple.xml: Modified to be a better
578 test for the formular name/description -> name filter.
579
580 2007-08-18 Sascha L. Teichmann <[email protected]>
581
582 * tools/formed/formed.py, tools/formed/formed/main.py: First
583 command line argument is interpreted as filename of document
584 to be loaded at program startup.
585
586 2007-08-17 Frank Koormann <[email protected]>
587
588 * contrib/convert-formedtree2html.xsl:
589 Heading level depending on depth of group node.
590 In case of radio/choice/check only list of options.
591
592 2007-08-17 Torsten Irlaender <[email protected]>
593
594 * contrib/convert-formedtree2html.xsl: Output is now generated with
595 HTML doc-string and charset information in the meta-header.
596
597 2007-08-17 Torsten Irlaender <[email protected]>
598
599 * contrib/convert-formedtree2html.xsl: Added small script for
600 exporting the formed tree to html
601
602 2007-08-17 Torsten Irlaender <[email protected]>
603
604 * tools/formed/model/nodecomponents.py: Added function to rename
605 the set the name of the node to the formularname. The formularname
606 gets shorten to <=64 by removing vowels and is stored lowercase.
607 If the name is not unique and additional id value is appended.
608
609 * tools/formed/formed/model/data.py: Overwritten renaming-function for
610 bool-leafs
611
612 * tools/formed/formed/main.py: Added menuitem for renaming the names
613 of the element
614
615 2007-08-16 Sascha L. Teichmann <[email protected]>
616
617 * tools/formed/formed/main.py: Swaped order of
618 'Make names unique' and 'Selected mode...' in Extra
619 menu and put a separator between them.
620
621 2007-08-15 Sascha L. Teichmann <[email protected]>
622
623 * tools/formed/formed/model/data.py: SwitchNodes can add
624 their modes to a given set now.
625
626 * tools/formed/formed/plugins/plugin.py: Simplified
627 the plug-in interface. Only the reference to the
628 global configuration is passed at setup time.
629
630 * tools/formed/formed/plugins/web/plugin.py: Adjusted
631 to new plug-in setup. The traveral mode is now taken
632 from the global configuration each time a rendering
633 is triggered. The FORMED parameter is now named
634 'doc.mode' instead of 'web.mode'. The parameter
635 is not needed any more because it can be configured
636 at runtime.
637
638 * tools/formed/formed/main.py: Adjusted to new plugin
639 setup. Added a new menu item Extra->Select Mode...
640 to select the traversal mode. It is stored in the
641 global config.
642
643 * tools/formed/formed/config.py: Simplified. Only uses
644 one env dictionary to store global configuration parameters.
645
646 * tools/formed/formed/ui/controls.py: Add a control to
647 select one item from a list of given strings.
648
649 2007-08-15 Sascha L. Teichmann <[email protected]>
650
651 * tools/formed/formed/plugins/web/plugin.py,
652 tools/formed/formed/plugins/web/renderer.py: Added parameter
653 print out in web plugin.
654
655 2007-08-15 Torsten Irlaender <[email protected]>
656
657 * contrib/convert-formedtree2csv.xsl: Added small script for
658 exporting the formed tree to csv
659
660 2007-08-14 Sascha L. Teichmann <[email protected]>
661
662 * tools/formed/formed/model/data.py,
663 tools/formed/formed/model/nodecomponents.py,
664 tools/formed/formed/io/document.py: Added a 'switch' node.
665
666 * tools/formed/formed/plugins/web/renderer.py:Render the
667 new 'switch' node.
668
669 * tools/formed/formed/plugins/web/plugin.py,
670 tools/formed/formed/config.py: Added a 'web.mode' parameter
671 to FORMED environment variable.
672 e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'.
673 Defaults to 'default'.
674
675 * tools/formed/test-data/simple.xml: Added test for switch.
676
677 2007-08-14 Sascha L. Teichmann <[email protected]>
678
679 * tools/formed/formed/model/nodecomponents.py: Added an
680 attribute 'formularname' to base class of node components.
681
682 2007-08-13 Sascha L. Teichmann <[email protected]>
683
684 * tools/formed/formed/io/document.py,
685 tools/formed/formed/model/data.py,
686 tools/formed/formed/model/nodecomponents.py: Added an item
687 to model external item lists.
688
689 * tools/formed/formed/plugins/web/renderer.py: Render new item
690 list.
691 * tools/formed/formed/main.py: Added a forgotten 'self.'
692
693 * contrib/extract-xfa-items.sh: Modified to generate
694 documents to be loadable from new item lists
695
696 2007-08-13 Sascha L. Teichmann <[email protected]>
697
698 * tools/formed/formed/main.py: Fixed typo
699
700 2007-08-13 Sascha L. Teichmann <[email protected]>
701
702 * contrib/extract-xfa-items.sh: New. Can be used to extract longer
703 choice item lists for a given field from XFA files. e.g. with
704 './contrib/extract-xfa-items.sh Muttersprache alles.xml'
705
706 2007-08-12 Sascha L. Teichmann <[email protected]>
707
708 * tools/formed/formed/model/data.py,
709 tools/formed/formed/plugins/web/renderer.py,
710 tools/formed/formed/io/document.py: Changed the structure
711 of choice constructs. The idea to hold the different items
712 of a particular choice in a semicolon separated list was bad.
713 Now choices are groups and the option items are modelled as
714 embedded bools. (mainly Torsten Irländer's idea).
715
716 WARNING: this makes old document files containing choices incompatible!!!
717 Use the following XSLT to reestablish compatibility.
718
719 * contrib/itemize-choices.xsl: New converts old to new structure.
720 Needs exslt.org's string extensions (which xsltproc includes)
721
722 * tools/formed/test-data/simple.xml: Ajusted to new structure
723
724 * tools/formed/formed/plugins/web/plugin.py: remove debug output
725
726 * tools/formed/formed/model/nodecomponents.py: fixed a small bug in
727 node finding code. It now uses the walk() generator, too.
728
729 2007-08-12 Sascha L. Teichmann <[email protected]>
730
731 * tools/formed/formed/main.py: Added a clone item on the toolbar which
732 copies the currently selected item and appends it after the selection.
733
734 * tools/formed/formed/model/nodecomponents.py: Added code to clone parts
735 of the tree.
736
737 * tools/formed/formed/ui/controls.py: Added a getSelected method.
738
739 * tools/formed/formed/model/misc.py: Fixed a programming bug.
740 forgot a 'self.' prefix.
741
742 2007-08-12 Sascha L. Teichmann <[email protected]>
743
744 * tools/formed/formed/model/nodecomponents.py: Added a method to append
745 a second document to the current.
746
747 * tools/formed/formed/main.py: Added an 'Import' file menu item to load
748 a second document to be appended to the current.
749
750 2007-08-12 Sascha L. Teichmann <[email protected]>
751
752 * tools/formed/formed/main.py: Added a 'New' item in file menu which creates
753 a new document when triggered.
754
755 2007-08-12 Sascha L. Teichmann <[email protected]>
756
757 * tools/formed/formed/model/nodecomponents.py: Added walk generator over all
758 items in the document tree. Added a method to eliminated duplicated names
759 in document tree.
760
761 * tools/formed/formed/model/misc.py: Added update mechanism for id generator
762 after names collisions are eliminated.
763
764 * tools/formed/formed/main.py: Added an 'Extra' menu with item
765 'Make names unique'.
766
767 2007-08-11 Sascha L. Teichmann <[email protected]>
768
769 * tools/formed/formed/model/data.py,
770 tools/formed/formed/plugins/web/renderer.py: Removed support
771 for 'text' attributes in bool items. They were never really
772 used and the 'description' attributes fulfill the same
773 purpose.
774
775 * contrib/remove-bool-text.xsl: Transform to remove the
776 'text' attributes from bool items. Apply with:
777 'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml'
778
779 * tools/formed/test-data/simple.xml: Removed 'text' attributes
780 from bool items.
781
782 2007-08-11 Sascha L. Teichmann <[email protected]>
783
784 * contrib/convert-choices.xsl: Simpified.
785
786 2007-08-11 Sascha L. Teichmann <[email protected]>
787
788 * tools/formed/formed/model/data.py: Removed 'options' attribute
789 from ChoiceLeaf. Use 'value' instead, please!
790
791 * tools/formed/formed/plugins/web/renderer.py: use 'value' attribute
792 instead of 'options' to render choices.
793
794 * contrib/convert-choices.xsl: Added to convert document files
795 which use the choice 'option' attribute to usage of 'value'.
796 Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml'
797
798 2007-08-10 Sascha L. Teichmann <[email protected]>
799
800 * tools/formed/formed/plugins/web/renderer.py: radio buttons
801 are selected by 'checked' and not by 'selected'. Fixed.
802
803 2007-08-10 Sascha L. Teichmann <[email protected]>
804
805 * tools/formed/formed/model/data.py: ChoiceLeafs are now
806 initialized with size = 1.
807
808 2007-08-10 Sascha L. Teichmann <[email protected]>
809
810 * tools/formed/formed/model/data.py: TextLeafs are now
811 initialized with size = 40, maxlength = 60
812
813 2007-08-10 Sascha L. Teichmann <[email protected]>
814
815 * tools/formed/formed/plugins/web/renderer.py: Fixed: choices
816 are renderered with description now.
817
818 2007-08-10 Sascha L. Teichmann <[email protected]>
819
820 * tools/formed/formed/plugins/web/renderer.py: Added rendering
821 for date items. Added missing ids for texts and textareas.
822
823 2007-08-10 Sascha L. Teichmann <[email protected]>
824
825 * tools/formed/formed/config.py: Evaluate the environment
826 variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2'
827
828 * tools/formed/formed/plugins/plugin.py: Give a reference
829 to the config at setup time.
830
831 * tools/formed/formed/plugins/web/plugin.py: To determine
832 the port look at FORMED dictionary first. Key is 'web.port'.
833 e.g. FORMED='web.port:8888'
834
835 * tools/formed/formed/main.py: Call the plugin setup with
836 the reference to the config.
837
838 2007-08-10 Sascha L. Teichmann <[email protected]>
839
840 * tools/formed/test-data/simple.xml: removed 'text' attributes from
841 info tags. Use the 'value' attributes for same purpose now, please!
842
843 * tools/formed/formed/model/data.py: removed text attributes from
844 InfoLeaf.
845
846 * tools/formed/formed/plugins/web/renderer.py: Rendering of info
847 now uses the 'value' instead of the 'text' attributes.
848
849 2007-08-09 Sascha L. Teichmann <[email protected]>
850
851 * tools/formed/formed/model/data.py: next/prevPage() are
852 methods of PageNode now.
853
854 * tools/formed/formed/model/nodecomponents.py: findByClassAndName()
855 is method of Document now.
856
857 * tools/formed/formed/plugins/web/plugin.py: Factored out
858 the HTML renderer.
859
860 * tools/formed/formed/plugins/web/renderer.py: New: contains
861 the HTML renderer now.
862
863 * tools/formed/test-data/simple.xml: Fixed typo
864
865 2007-08-09 Sascha L. Teichmann <[email protected]>
866
867 * tools/formed/formed/plugins/web/plugin.py: Fixed a bug
868 in calculation of width of bounded int fields.
869
870 2007-08-09 Sascha L. Teichmann <[email protected]>
871
872 * tools/formed/test-data/simple.xml: Make demo Int fancier.
873
874 * tools/formed/formed/model/data.py: Added attributes to IntLeaf
875
876 * tools/formed/formed/plugins/web/plugin.py: Added rendering for
877 Ints
878
879 2007-08-09 Sascha L. Teichmann <[email protected]>
880
881 * tools/formed/test-data/simple.xml: Added demo textarea
882
883 * tools/formed/formed/model/data.py: Added TextAreaLeaf
884
885 * tools/formed/formed/io/document.py: register builder
886 for loading of textareas
887
888 * tools/formed/formed/plugins/web/plugin.py: Added rendering
889 for textareas.
890
891 2007-08-09 Sascha L. Teichmann <[email protected]>
892
893 * tools/formed/test-data/simple.xml: Make demo choice fancier.
894
895 * tools/formed/formed/model/data.py: Added attributes for texts
896
897 * tools/formed/formed/plugins/web/plugin.py: Added rendering
898 for texts
899
900 2007-08-09 Sascha L. Teichmann <[email protected]>
901
902 * tools/formed/test-data/simple.xml: Make demo choice fancier.
903
904 * tools/formed/formed/model/data.py: Added attributes for choices.
905
906 * tools/formed/formed/plugins/web/plugin.py: Added rendering
907 for choices
908
909 2007-08-09 Sascha L. Teichmann <[email protected]>
910
911 * tools/formed/formed/model/data.py,
912 tools/formed/formed/model/nodecomponents.py: Added new
913 attributes.
914
915 * tools/formed/formed/plugins/web/plugin.py: Added rendering
916 for checkboxes and radio buttons.
917
918 2007-08-08 Sascha L. Teichmann <[email protected]>
919
920 * tools/formed/test-data/simple.xml: Added some descriptions
921
922 * tools/formed/formed/model/data.py: set attributes in constructors
923 directly.
924
925 * tools/formed/formed/model/nodecomponents.py: Added description
926 attribute in the NodeComponent base class.
927
928 * tools/formed/formed/plugins/web/plugin.py: Render description
929 as legend in fieldset for GroupNodes.
930
931 2007-08-08 Sascha L. Teichmann <[email protected]>
932
933 * tools/formed/formed/plugins/web/plugin.py: make UTF-8
934 output work.
935
936 2007-08-08 Sascha L. Teichmann <[email protected]>
937
938 * tools/formed/formed/model/data.py: Added get/setText() method
939
940 * tools/formed/formed/plugins/web/plugin.py: Added a first
941 version of a recursive HTML renderer based on the document
942 tree.
943
944 2007-08-08 Sascha L. Teichmann <[email protected]>
945
946 * tools/formed/formed/plugins/*: New: plug-in infrastructure.
947
948 * tools/formed/formed/plugins/web/*: new: A simple web server
949 which is intended to serve pages of the current formular.
950
951 * tools/formed/formed/main.py: start the plug-ins
952
953 * tools/formed/formed/config.py: configuration class. Used
954 for the plug-ins.
955
956 2007-08-08 Sascha L. Teichmann <[email protected]>
957
958 * tools/formed/formed/model/nodecomponents.py: Fixed broadcasting
959 issue with zero length tree paths.
960
961 * tools/formed/formed/model/misc.py: New: contains a class
962 for generating unique ids.
963
964 * tools/formed/formed/main.py: Added an instance of an
965 unique id generator for naming of new made tree items.
966
967 2007-08-07 Sascha L. Teichmann <[email protected]>
968
969 * tools/formed/formed/main.py: Added event route document ->
970 attribute table to get informed when selected item is delete
971 or an attribute is changed from the outside.
972
973 * tools/formed/formed/ui/controls.py: Fixed. In older versions of
974 wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead
975 of 3 argument. Uses icons+tooltips for tree navigation now.
976
977 2007-08-07 Sascha L. Teichmann <[email protected]>
978
979 * tools/formed/formed/model/nodecomponents.py: Set name
980 attribute in base class.
981
982 * tools/formed/formed/io/document.py: Added a table
983 names -> classes.
984
985 * tools/formed/formed/main.py: Added a toolbar. Added code
986 to create and delete tree items.
987
988 * tools/formed/formed/ui/controls.py: Added code to
989 insert and delete new tree items.
990
991 2007-08-07 Sascha L. Teichmann <[email protected]>
992
993 * tools/formed/formed/model/nodecomponents.py: Fixed event
994 broadcasting for attribute changes.
995
996 * tools/formed/formed/ui/controls.py: Add a list/table control to
997 edit the attributes of a selected item.
998
999 * tools/formed/formed/main.py: Added code to bind the new
1000 list/table control.
1001
1002 2007-08-06 Sascha L. Teichmann <[email protected]>
1003
1004 * tools/formed/formed/main.py: Added event routes to move
1005 items in and out of groups.
1006
1007 * tools/formed/formed/ui/controls.py: Added code to move
1008 items in and out of groups.
1009
1010 2007-08-06 Sascha L. Teichmann <[email protected]>
1011
1012 * tools/formed/formed/model/nodecomponents.py: Fixed path
1013 calculation to root and event broadcasting
1014
1015 * tools/formed/formed/io/factories.py: Adjust to new
1016 event broadcasting.
1017
1018 * tools/formed/formed/main.py: Added code to move items
1019 up and down the document tree.
1020
1021 * tools/formed/formed/ui/controls.py: Establish sort order
1022 by indices of children in parent instead of alphanum.
1023 Code to move items up and down the document tree.
1024
1025 * tools/formed/formed/io/document.py: Added missing imports.
1026
1027 2007-08-06 Sascha L. Teichmann <[email protected]>
1028
1029 * tools/formed/formed.py: Added to avoid problems with
1030 ambiguous absolute module names. Thanks to Bernhard Herzog
1031
1032 * tools/formed/formed.sh: Starts formed.py now
1033
1034 * tools/formed/formed/main.py,
1035 tools/formed/formed/ui/controls.py: Added control to
1036 move items around in tree. Has no effect by now.
1037
1038 2007-08-05 Sascha L. Teichmann <[email protected]>
1039
1040 * tools/formed/formed/io/parser.py: Adjusted style
1041
1042 * tools/formed/formed/io/document.py,
1043 tools/formed/formed/io/factories.py: Simplified factory
1044 model for XML loading.
1045
1046 2007-08-05 Sascha L. Teichmann <[email protected]>
1047
1048 * ChangeLog: started ChangeLog
1049
1050 * tools/formed/*: initial check-in of the Formular Editor.
1051 Not working yet. Only can load, view and store formular XML files.
1052 Start it with 'tools/formed/formed.sh'.

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26