/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26