/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 138 - (show annotations)
Wed Sep 5 15:05:41 2007 UTC (17 years, 5 months ago) by torsten
File size: 40374 byte(s)
Added create, update, delete and show handlers

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26