/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26