/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26