/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26