/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26