/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 148 - (show annotations)
Fri Sep 7 09:43:13 2007 UTC (17 years, 5 months ago) by torsten
File size: 43392 byte(s)
Provided formdata in the renderes

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26