/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 193 - (show annotations)
Wed Sep 26 23:49:44 2007 UTC (17 years, 5 months ago) by teichmann
File size: 58844 byte(s)
sql export: prepare for exporting new views
1 2007-09-26 Sascha L. Teichmann <[email protected]>
2
3 * tools/formed/formed/model/data.py: Removed old {next|prev}Page()
4 TODO: rewrite Page.allWidgets().
5
6 * tools/formed/formed/model/nodecomponents.py: Added a method
7 Node.firstLevel(criterion) to walk a defined line in the tree.
8
9 * tools/formed/formed/plugins/export/sql.py: Extract data suitable to
10 build views and respective joins.
11
12 2007-09-26 Sascha L. Teichmann <[email protected]>
13
14 * tools/formed/formed/plugins/web/plugin.py: add 'web.tidy:' flag to
15 FORMED environment variable. If set to true tidylib is used to
16 filter HTML content to be W3C valid. To use this feature install
17 uTidylib.
18
19 * tools/formed/formed/plugins/web/server.py: Check if MIME type is
20 text/html and filters content through tidy if requested.
21
22 2007-09-25 Torsten Irlaender <[email protected]>
23
24 * tools/formed/formed/plugins/web/view_renderer.py: Small fix and
25 cleanup of the form generation code.
26
27 2007-09-21 Sascha L. Teichmann <[email protected]>
28
29 * tools/formed/formed/plugins/export/sql.py: Added generation time
30 and DROP TABLE statements to schema export.
31
32 2007-09-20 Sascha L. Teichmann <[email protected]>
33
34 * tools/formed/formed/plugins/export/sql.py: The tables are generated
35 in correct topolocial order now.
36
37 2007-09-20 Sascha L. Teichmann <[email protected]>
38
39 * tools/formed/formed/plugins/export/mode.py: New. Filter to export
40 a document with items that are in given mode.
41
42 * tools/formed/formed/model/nodecomponents.py: Added methods to clone
43 trees depending on selected modes.
44
45 * tools/formed/formed/model/data.py, tools/formed/formed/model/expr.py:
46 Fixed clone issue with RuleNodes.
47
48 * tools/formed/formed/config.py: Use new plug-in.
49
50 2007-09-17 Sascha L. Teichmann <[email protected]>
51
52 * tools/formed/formed/plugins/web/view_renderer.py: Make the
53 view renderer a real view renderer. It takes a list of
54 items now and not only a single page.
55
56 * tools/formed/formed/plugins/web/renderer.py: Feed a list
57 of items to the view renderer.
58
59 2007-09-17 Torsten Irlaender <[email protected]>
60
61 * tools/formed/formed/plugins/web/view_renderer.py:
62 Small tweaks in rendering bools.
63 RadioNodes (with all its children) can now be placed in a container.
64 The radiobools will not get a surrounding <div> anymore.
65 I am not sure if the new way results in the wanted behaivor, but the
66 rendering results are much better now :)
67 Maybe we need a similar approach for checkboxes?
68 Rendering groups is still broken in some way.
69
70 2007-09-17 Sascha L. Teichmann <[email protected]>
71
72 * tools/formed/formed/plugins/web/view_renderer.py: Fixed
73 a few bugs: Do not render empty containers, do not
74 generate misplaced <br class="newline"> in choices.
75 Add a nameless container to catch the items that are
76 nor explicitly assigned to a target. Removed FormData.
77
78 * tools/formed/formed/plugins/web/renderer.py: Removed
79 a needless import
80
81 2007-09-17 Sascha L. Teichmann <[email protected]>
82
83 * tools/formed/formed/plugins/web/view_renderer.py: Implemented
84 usage of 'containers' and 'target' attributes.
85
86 * tools/formed/formed/plugins/web/controllers.py: Modified import.
87
88 * tools/formed/formed/plugins/web/renderer.py: Use
89 new ViewRenderer.
90
91 2007-09-17 Sascha L. Teichmann <[email protected]>
92
93 * tools/formed/formed/model/nodecomponents.py: Added attributes
94 'target' to NodeComponent and 'containers' to Node.
95
96 * tools/formed/formed/plugins/web/view_renderer.py: New. Aimed
97 to be a replacement for form_renderer. Not ready yet!
98
99 * ChangeLog: Fixed some indention glitches.
100
101 2007-09-13 Torsten Irlaender <[email protected]>
102
103 * tools/formed/formed/plugins/names/filter.py: Fixed bug in the
104 renaming algorithm.
105
106 2007-09-12 Torsten Irlaender <[email protected]>
107
108 * tools/formed/formed/plugins/web/form_renderer.py: Renamed header
109 from formular navigation to "Fallakte Inhalt"
110
111 2007-09-12 Torsten Irlaender <[email protected]>
112
113 * tools/formed/formed/plugins/ui/controls.py: Fixed bug that bad
114 values (dates) were not pretty printed.
115
116 * tools/formed/formed/plugins/web/form_renderer.py: Added errormsg to
117 label rendering for choicelists.
118
119 2007-09-12 Torsten Irlaender <[email protected]>
120
121 * tools/formed/formed/plugins/ui/controls.py: Fixed bug that
122 choicelist did not get selected when the value is set to "0"
123
124 2007-09-12 Torsten Irlaender <[email protected]>
125
126 * tools/formed/formed/plugins/web/form_renderer.py: Added
127 "getPrintableData" method, for the formdata Class which will return
128 the description rather than the value of element in the ID. This is
129 need for displaying the choises in a right way.
130
131 * tools/formed/formed/plugins/web/renderer.py: Changed string
132 "Fallnummer" into "Kundennummer" in the templates. Added
133 Kundennummer to the dataset digest output. Bound in the new
134 "getPrintableData" call for the digest.
135
136 2007-10-11 Sascha L. Teichmann <[email protected]>
137
138 * tools/formed/formed/plugins/export/data.py: The import/export
139 of data is now implemented with filters (the most consequent
140 way in terms of design of FormEd). The support of the 'persistent'
141 FORMED env-variable support has been removed.
142
143 * tools/formed/formed/plugins/ui/controls.py: Added a flag to the
144 filter file dialog to double as import dialog.
145
146 * tools/formed/formed/main.py: Removed the the FORMED-var support
147 for persistence.
148
149 * tools/formed/formed/config.py: Add the two new filters to the filters
150 list.
151
152 2007-10-11 Sascha L. Teichmann <[email protected]>
153
154 * tools/formed/formed/model/memory.py: Uses XML as persistence format now.
155 Removed pickle/unpickle stuff.
156
157 * tools/formed/formed/main.py: Uses the new XML persistence.
158
159 * tools/formed/formed/plugins/web/semantic.py: Fixed: choices were
160 not converted to int indices.
161
162 2007-09-11 Sascha L. Teichmann <[email protected]>
163
164 * tools/formed/formed/model/memory.py: Making MemoryDataStore persistent
165 with pickle/unpickle.
166
167 * tools/formed/formed/main.py: Added a env FORMED parameter 'persistent'.
168 Set to a file name it is tried to unpickle a MemoryDataStore from
169 that file. When exiting the program this file is used to store the
170 current MemoryDataStore state. The storing only works if you exit
171 the program through the Menu File->Exit.
172 usage: FORMED=persistent:test.db ./formed.sh
173
174 2007-09-11 Torsten Irlaender <[email protected]>
175
176 * tools/formed/formed/plugins/web/renderer.py: Changed Name of the
177 application on the welcome page from "Formed" to "WASKA"
178
179 2007-09-11 Torsten Irlaender <[email protected]>
180
181 * tools/formed/formed/plugins/web/plugin.py,
182 * tools/formed/formed/plugins/web/controllers.py,
183 * tools/formed/formed/plugins/web/renderer.py: Added InfoPageHandler.
184 The infopage provides information on all project participants.
185
186 2007-09-11 Sascha L. Teichmann <[email protected]>
187
188 * tools/formed/formed/plugins/web/controllers.py: Fix unicode conversion
189 issues with error messages (once again).
190
191 2007-09-11 Torsten Irlaender <[email protected]>
192
193 * tools/formed/formed/plugins/web/form_renderer.py,
194 * tools/formed/formed/plugins/web/renderer.py: Added alt tag for
195 icons in error and confirmation dialogs.
196
197 2007-09-11 Sascha L. Teichmann <[email protected]>
198
199 * tools/formed/formed/plugins/web/form_renderer.py: Fixed label
200 generation for ints, texts and textareas. Fixed h depths of infos.
201
202 2007-09-11 Sascha L. Teichmann <[email protected]>
203
204 * tools/formed/formed/plugins/web/form_renderer.py: Removed
205 debug output for help.
206
207 * tools/formed/formed/plugins/web/semantic.py: Added forgotten
208 check for bools.
209
210 * tools/formed/formed/plugins/web/controllers.py: Added correct
211 HTML output of data for bools.
212
213 2007-09-11 Torsten Irlaender <[email protected]>
214
215 * tools/formed/formed/plugins/web/form_renderer.py: Changed size of
216 textfields for int values. Changed Label for submitbuttons to
217 "Speichern"
218
219 * tools/formed/formed/plugins/web/plugin.py,
220 tools/formed/formed/plugins/web/controllers.py: Added new
221 NotImplementedHandler to show up a dummysite for not implemented
222 functions.
223
224 * tools/formed/formed/plugins/web/renderer.py: Added
225 NotImplementedRenderer. Various small fixes. Mostly renaming the
226 labels of some context menus. Error messages are now generated
227 dynamically depending on num errors. Formular navigation has now
228 colored indication for errors.
229
230 2007-09-11 Torsten Irlaender <[email protected]>
231
232 * tools/formed/formed/plugins/web/renderer.py: Implemented "LookAhead"
233 algorithm for the formular navigation to get rid of the problem
234 that some of the items within the navigation are not linked. Now
235 structural group elements are linked with the next page found in the
236 formular structure.
237
238 2007-09-10 Torsten Irlaender <[email protected]>
239 * tools/formed/formed/plugins/web/form_renderer.py: Changed order of
240 div and formtag.
241
242 * tools/formed/formed/plugins/web/controllers.py: Added DataSet action
243 menu in the conformation dialog when creating a new dataset.
244
245 * tools/formed/formed/plugins/web/renderer.py: Fixed error when
246 rendering the default welcome page. Changed rendering of the
247 overview and the digest table of the datasets. Added icon for
248 confirmation dialog, moved the icon in the <h1> tags.
249
250 2007-09-10 Torsten Irlaender <[email protected]>
251
252 * tools/formed/formed/plugins/web/form_renderer.py: Some html
253 generation cleanup. Added error icons to formelements
254
255 * tools/formed/formed/plugins/web/controllers.py: Fixed initialisation
256 of ErrorStatus. Fixed generated of the help tags in the formular
257
258 * tools/formed/formed/plugins/web/renderer.py: Added error icon for
259 pageerrors. An "!" now indicates errors on pages in the formular
260 navigation. Added new <div> "content" around confirmation dialogss.
261 Links in confimation dialogs are now rendered as buttons. Removed
262 old obsolete OverviewRenderer.
263
264 2007-09-10 Sascha L. Teichmann <[email protected]>
265
266 * tools/formed/formed/plugins/web/renderer.py: Highlight selected
267 page in page navigation.
268
269 2007-09-10 Torsten Irlaender <[email protected]>
270
271 * tools/formed/formed/plugins/web/controllers.py: Fixed issues on
272 displaying formdata when changing datasets. Loading the right
273 formdata was not handled in a correct way. Hope it is all fixed now.
274 Left some commented code because not all sideeffects of the changes
275 are tested yet.
276
277 * tools/formed/formed/plugins/web/renderer.py: DataSetDigestRenderer
278 now uses the correct data out of the formdata.
279
280 2007-09-10 Sascha L. Teichmann <[email protected]>
281
282 * tools/formed/formed/plugins/web/controllers.py: Pretty
283 print format data (dates e.g)
284
285 2007-09-10 Sascha L. Teichmann <[email protected]>
286
287 * tools/formed/formed/plugins/web/controllers.py: Modified
288 ErrorStats a bit to avoid mysterious extra error on page.
289 No clue why this works.
290
291 2007-09-10 Sascha L. Teichmann <[email protected]>
292
293 * tools/formed/formed/plugins/web/form_renderer.py: Fixed value
294 problem with radio groups, too.
295
296 2007-09-10 Torsten Irlaender <[email protected]>
297 * tools/formed/formed/plugins/web/controllers.py: Sessions are now
298 really removed when deleting a dataset.
299
300 2007-09-10 Torsten Irlaender <[email protected]>
301
302 * tools/formed/formed/plugins/web/controllers.py: Added new Class
303 ErrorStats which provides Information on remaining errors per page.
304
305 * tools/formed/formed/plugins/web/renderers.py: Finished movement of
306 the renderer methods from controllers.py to renderers.py.
307
308 * tools/formed/formed/plugins/web/plugin.py: Removed render_session
309 handlers
310
311 2007-09-10 Sascha L. Teichmann <[email protected]>
312
313 * tools/formed/formed/plugins/web/form_renderer.py: values for
314 choices are generated from the document tree now. This brings
315 the state storage of select boxes in HTML to live.
316
317 2007-09-09 Sascha L. Teichmann <[email protected]>
318
319 * tools/formed/formed/plugins/web/semantic.py: Fixed problems with
320 range checking of integers.
321
322 * tools/formed/formed/plugins/web/controllers.py: Added class
323 ErrorItem to track errors. They are stored in the session.
324
325 2007-09-09 Sascha L. Teichmann <[email protected]>
326
327 * tools/formed/formed/model/nodecomponents.py: Fixed returning
328 wrong index in Document.indexOfcomponentByClassAndName.
329
330 * tools/formed/formed/plugins/web/form_renderer.py: 'error' was
331 written 'errot' in renderer for textareas.
332
333 * tools/formed/formed/plugins/web/controllers.py: Some clean-ups.
334
335 2007-09-09 Sascha L. Teichmann <[email protected]>
336
337 * tools/formed/formed/plugins/web/help.py: Added a 'hasHelp'
338 method. Could be cheaper for some implementations of help.
339
340 * tools/formed/formed/plugins/web/form_renderer.py: Modified
341 FormData to have distinct getData(), getHelp() and getError()
342 methods. Various bug fixes.
343
344 * tools/formed/formed/plugins/web/controllers.py: Implements the
345 new FormData (trivial by now).
346
347 * tools/formed/formed/plugins/web/renderer.py: New FormData and
348 some bug fixes.
349
350 2007-09-09 Sascha L. Teichmann <[email protected]>
351
352 * tools/formed/formed/model/memory.py,
353 tools/formed/formed/model/persistent.py: Add a getValue() method
354 to dataset abstraction. This is a bit of a workaround to bring
355 global access across pages for rule checking to work.
356
357 * tools/formed/formed/model/data.py: Fixed: When setting a new expression
358 the compiled version was not stored in the RuleLeaf.
359
360 * tools/formed/formed/model/expr.py: shlex lexer does not like unicode.
361 convert the expression string to ascii for compilation.
362
363 * tools/formed/formed/plugins/web/semantic.py: Remove the 'box' because
364 valid data is stored to the dataset immediately now. Fixed a bug
365 with integer handler.
366
367 * tools/formed/formed/plugins/web/controllers.py: Removed the semantic 'box'
368 stuff. When a submit is done extract the rules from the tree document
369 that are effected by the modified variables and check them.
370
371 * tools/formed/formed/plugins/web/renderer.py: Fixed exception handling
372 when dealing with templates.
373
374 2007-09-07 Torsten Irlaender <[email protected]>
375 * tools/formed/formed/plugins/web/controllers.py,
376 tools/formed/formed/plugins/web/renderer.py: Moved more render
377 functions into renderer.py. New render classes are:
378 DataSetDigestRenderer, DataSetNavigationRenderer,
379 DataSetFormularRenderer, ConfirmationDialogRenderer
380
381 Note: The new methods are only called from selected handlers. Other
382 handlers call the renderes in the old way.
383
384 2007-09-07 Torsten Irlaender <[email protected]>
385 * tools/formed/formed/plugins/web/form_renderer.py: Renamed
386 renderer.py to form_renderer.py. This file will contain formular
387 specfic render methods in the future.
388 * tools/formed/formed/plugins/web/renderer.py: Added new renderer.py
389 which will contain general render methods.
390 * tools/formed/formed/plugins/web/controllers.py: Began to move all
391 rendering into renderer.py or form_renderer.py. This file will only
392 contain teh handlers in the future.
393
394 2007-09-07 Torsten Irlaender <[email protected]>
395 * tools/formed/formed/plugins/web/renderer.py,
396 tools/formed/formed/plugins/web/controller.py:
397 Renderes now get an instance of the formdata object to provide
398 access the data needed to render various infoboxes etc. Handler
399 instanciate the formdata.
400
401 2007-09-06 Torsten Irlaender <[email protected]>
402 * tools/formed/formed/plugins/web/renderer.py: Mainly tried to get the
403 getFormData interface to work. Added two small semantic fixes, but
404 did not manage to get it up. Need to exime this a little bit more
405 * tools/formed/formed/plugins/web/controllers.py: Put <div> tags
406 around the menus on the right side to be able to assign different
407 styles. Added dataset actions while editing a dataset.
408
409 2007-09-05 Torsten Irlaender <[email protected]>
410 * tools/formed/formed/model/memory.py: Fixed deleting datasets by
411 removing unwanted del method
412 * tools/formed/formed/plugins/web/controllers.py: Implemented
413 confiration dialogs for create, delete, and select aof datasets. Started to use
414 templates as well for larger information units like the dataset summary.
415
416 2007-09-05 Sascha L. Teichmann <[email protected]>
417
418 * tools/formed/formed/model/nodecomponents.py: Added a
419 method to document to find index of page.
420
421 * tools/formed/formed/plugins/web/semantic.py: Added getValue()
422 to fetch data from semantic box.
423
424 * tools/formed/formed/plugins/web/controllers.py: Added new
425 FormData implementation to support DB and semantic box.
426
427 2007-09-05 Sascha L. Teichmann <[email protected]>
428
429 * tools/formed/formed/plugins/web/renderer.py: escaped
430 error message.
431
432 * tools/formed/formed/plugins/web/controllers.py: Don't fetch
433 dataset from backend each time a page is up to edit.
434
435 2007-09-05 Sascha L. Teichmann <[email protected]>
436
437 * tools/formed/formed/plugins/web/renderer.py: SimplePageRenderer
438 returns "Page not found" if given page is None.
439
440 * tools/formed/formed/plugins/web/controllers.py: Added checks
441 to avoid crashing when ask for a non-existent page.
442
443 2007-09-05 Sascha L. Teichmann <[email protected]>
444
445 * tools/formed/formed/plugins/web/controllers.py: Some clean-ups.
446
447 2007-09-05 Sascha L. Teichmann <[email protected]>
448
449 * tools/formed/formed/plugins/web/plugin.py: Remove request handlers
450 and renderers.
451
452 * tools/formed/formed/plugins/web/controllers.py: New. Contains handlers
453 and renderers now. TODO: Move renderers to renderer.py
454
455 2007-09-05 Torsten Irlaender <[email protected]>
456
457 * tools/formed/formed/plugins/web/www/main.tmpl: Adopted web template
458 and bound in the the new added functions to create, edit, delete and
459 show formdata.
460
461 2007-09-05 Sascha L. Teichmann <[email protected]>
462
463 * tools/formed/formed/model/memory.py: Removed bisect and use a
464 simple linear scan for dataset lookup now.
465
466 * tools/formed/formed/plugins/web/plugin.py: Fixed various issues
467 of different sizes.
468
469 2007-09-05 Torsten Irlaender <[email protected]>
470
471 * tools/formed/formed/plugins/web/memory.py: Fixed getDataSetById
472 fuction
473
474 * tools/formed/formed/plugins/web/persistent.py: Added store() method
475 to the DataSet interface
476
477 * tools/formed/formed/plugins/web/renderer.py: Added handlers and
478 renderes for create, update, delete and show actions on formular data.
479
480 2007-09-04 Sascha L. Teichmann <[email protected]>
481
482 * tools/formed/formed/plugins/web/server.py: The mapping
483 to methods is now driven by regualar expressions and
484 a dictionary. Response objects are now able to send
485 error codes.
486
487 * tools/formed/formed/plugins/web/renderer.py: Fixed an issue
488 when help in Formdata is None. Moved text for help into
489 a top level '''...''' variable.
490
491 * tools/formed/test-data/simple.xml: Added test for help.
492
493 * tools/formed/formed/plugins/web/help.py: extra None check.
494
495 * tools/formed/formed/plugins/web/plugin.py: Uses the new
496 table driven mapping of reguest handling. TODO: split the
497 WebPlugIn.pageHandler() method further to smaller handlers.
498 Smaller clean ups and better exception handling.
499
500 * tools/formed/formed/plugins/web/cache.py: Report OSErrors
501 and do not catch them.
502
503 2007-09-04 Torsten Irlaender <[email protected]>
504
505 * tools/formed/formed/plugins/web/renderer.py,
506 * tools/formed/formed/plugins/web/plugin.py: Added Interface to
507 the HelpProvider and inserted help icons to the html output.
508 Added decorator for Formelemnts, so textfields, choices etc. are now
509 within a <div> tag.
510 Modified the error messages.
511
512 2007-09-04 Sascha L. Teichmann <[email protected]>
513
514 * tools/formed/formed/plugins/web/cache.py: New. Implements
515 the server-side caching more clean. Fixes a bug with
516 serving static content.
517
518 * tools/formed/formed/plugins/web/plugin.py: Use the new cache.
519
520 2007-09-04 Sascha L. Teichmann <[email protected]>
521
522 * tools/formed/formed/plugins/web/plugin.py: Set MIME type
523 to "application/xhtml+xml" when serving help texts.
524
525 2007-09-03 Sascha L. Teichmann <[email protected]>
526
527 * tools/formed/formed/plugins/export/diff.py: New. Exports
528 pairwise differences between all modes.
529
530 * tools/formed/formed/config.py: Use new export filter.
531
532 2007-09-03 Sascha L. Teichmann <[email protected]>
533
534 * tools/formed/formed/plugins/web/help.py: New. Parses an
535 XHTML document for id'ed divs and builds a help lookup.
536
537 * tools/formed/formed/plugins/web/www/help.tmpl: Template for
538 the help content frame.
539
540 * tools/formed/formed/plugins/web/www/help.xhtml: Some simple
541 help text index.
542
543 * tools/formed/formed/plugins/web/plugin.py: Serves the help
544 texts now.
545
546 2007-09-03 Torsten Irlaender <[email protected]>
547
548 * tools/formed/formed/plugins/web/plugin.py: Only visible group
549 elements will be rendered in the formular navigation.
550 Formular pages in the navigation now have their own css-style
551 attributes.
552
553 2007-09-03 Torsten Irlaender <[email protected]>
554
555 * tools/formed/formed/plugins/web/www/main.tmpl: Added div area for page
556 errors in template
557 * tools/formed/formed/plugins/web/plugin.py: Fixed undefined
558 pageerrors variable
559
560 2007-09-03 Frank Koormann <[email protected]>
561
562 * tools/formed/formed/plugins/export/html.py
563 (RecursiveExporter): Added annotation to export
564 (fillRow()): Renamed old fillNine to this more generic name.
565
566
567 2007-09-03 Sascha L. Teichmann <[email protected]>
568
569 * tools/formed/formed/plugins/web/renderer.py: Using the decorator
570 from model.misc now.
571
572 2007-09-03 Sascha L. Teichmann <[email protected]>
573
574 * tools/formed/formed/model/nodecomponents.py: Added an
575 'annotation' attribute to node components. This is to
576 enable FormEd document authors to add comments to groups
577 and fields.
578
579 2007-09-03 Frank Koormann <[email protected]>
580
581 * tools/formed/formed/model/nodecomponents.py
582 (NodeComponent.getParent): New method to get node components parent.
583
584 * tools/formed/formed/plugins/export/html.py: Export Choice option
585 as simple list instead of collection of bools.
586
587 2007-09-02 Sascha L. Teichmann <[email protected]>
588
589 * tools/formed/formed/model/persistent.py: Interfaces to abstract
590 from persistent storage details.
591
592 * tools/formed/formed/model/memory.py: In core implementation
593 of the persistent interfaces.
594
595 * tools/formed/formed/main.py: Holds a memory data store now.
596
597 2007-09-02 Sascha L. Teichmann <[email protected]>
598
599 * tools/formed/formed/plugins/export/sql.py,
600 tools/formed/formed/plugins/export/html.py: Fixed constructor chains
601 for FileDialogFilter sub classes.
602
603 2007-09-02 Sascha L. Teichmann <[email protected]>
604
605 * tools/formed/formed/model/misc.py: Checking the mode in recursive
606 tree traversals is a common task. To ease this a decorator function
607 checkMode in union with sub classing ModeChecker can be used.
608 To make it work simply subclass from ModeChecker and add the decorator
609 to the methods that need mode tracking. Before you start the recursion
610 call self.prepareDescent().
611
612 * tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme
613 now which replace the old. TODO: Make the web renderer use the new scheme
614 too.
615
616 2007-09-02 Sascha L. Teichmann <[email protected]>
617
618 * tools/formed/formed/plugins/export/sql.py: Removed needless import.
619
620 * tools/formed/formed/plugins/export/html.py: HTML table exporter
621 uses new FileDialogFilter base class too.
622
623 2007-09-02 Sascha L. Teichmann <[email protected]>
624
625 * tools/formed/formed/plugins/ui/*: New. All file exporters
626 need a file dialog. Till now each of them pulled up its
627 own. This was silly code replication. Now there is an abstract
628 base class 'FileDialogFilter' which implements the common
629 behavior. The file exporters should subclass it.
630
631 * tools/formed/formed/plugins/export/sql.py: Subclass the SQL
632 exporters from the new base class. TODO: Subclass the HTML
633 exporter too.
634
635 2007-08-31 Sascha L. Teichmann <[email protected]>
636
637 * tools/formed/formed/plugins/export/html.py: Make mode check
638 work (again).
639
640 2007-08-31 Torsten Irlaender <[email protected]>
641
642 * tools/formed/formed/plugins/export/html.py: Rendering of the HTML
643 exprt works now in a recursive way. This change was needed because
644 the structure of the formedtree has changed to be able to render
645 full hirachically document stuctures. (nested lists)
646 TODO: Fix modechecking
647
648 2007-08-31 Torsten Irlaender <[email protected]>
649
650 * tools/formed/formed/plugins/web/plugin.py: Navigation rendering works
651 now in recursive way. This change was needed because the structure
652 of the formedtree has changed to be able to render full hirachically
653 document stuctures. (nested lists)
654
655 2007-08-31 Sascha L. Teichmann <[email protected]>
656
657 * tools/formed/formed/model/nodecomponents.py: use discard()
658 instead of remove on sets.
659
660 * tools/formed/formed/plugins/export/sql.py: Added an
661 exporter for table views.
662
663 * tools/formed/formed/config.py: Added the new exporter
664 to the list of export filters.
665
666 2007-08-30 Sascha L. Teichmann <[email protected]>
667
668 * tools/formed/formed/model/data.py: Fixed a bug in
669 Page.allWidgets()
670
671 * tools/formed/formed/plugins/export/sql.py: Added an exporter
672 for stored procudeures.
673
674 * tools/formed/formed/config.py: Add the new SP exporter.
675
676 2007-08-29 Torsten Irlaender <[email protected]>
677
678 * tools/formed/formed/plugins/web/plugin.py,
679 tools/formed/formed/plugins/web/error_renderer.py: Added interface
680 to get the errors for a whole page in te formular. These errors can
681 now be displayed on the top of the formular.
682
683 2007-08-29 Torsten Irlaender <[email protected]>
684
685 * tools/formed/formed/plugins/web/renderer.py: Finished implementation
686 of the getFromData interface and prepared the rederer for generating
687 nice error messages
688
689 2007-08-28 Frank Koormann <[email protected]>
690
691 * tools/formed/formed/plugins/export/sql.py
692 (SchemaCreator.createSchema, SchemaCreator._createGroup):
693 Fixed typo in created DDS (PRIMRAY -> PRIMARY)
694
695 2007-08-28 Torsten Irlaender <[email protected]>
696
697 * tools/formed/formed/plugins/export/sql.py: Added small helper
698 function to generated valid quotes within the sql statements
699
700 2007-08-29 Sascha L. Teichmann <[email protected]>
701
702 * tools/formed/formed/plugins/export/sql.py: Added foreign keys
703 for repeat tables.
704
705 2007-08-29 Sascha L. Teichmann <[email protected]>
706
707 * tools/formed/formed/plugins/export/sql.py: When generating
708 an extra table check in a table of same content exists. In
709 this case reference the existing table.
710
711 2007-08-29 Sascha L. Teichmann <[email protected]>
712
713 * tools/formed/formed/plugins/export/sql.py: Rewritten to produce
714 _real_ SQL and respect repeat groups.
715
716 * tools/formed/formed/model/data.py: Fixed bug with Group.isRepeat()
717
718 * tools/formed/formed/plugins/web/renderer.py: Use "".join([])
719 instead of expensive += string concat in some places.
720
721 2007-08-29 Sascha L. Teichmann <[email protected]>
722
723 * tools/formed/formed/model/data.py: Renamed GroupNode.getRepeat()
724 to .isRepeat and return a bool. Fixed a bug in Page.allWidgets().
725
726 2007-08-28 Torsten Irlaender <[email protected]>
727
728 * tools/formed/plugins/web/renderer.py: Added Formdata interface.
729 * tools/formed/model/data.py: Implements Formadata interface to
730 textfields. Fieldset generated depends now on the "invisible"
731 attribute of the groupnode. Field-label generation slightly changed.
732 Added error indication to textfields
733
734 2007-08-28 Sascha L. Teichmann <[email protected]>
735
736 * tools/formed/formed/model/data.py,
737 tools/formed/formed/io/document.py: Removed support
738 of logical groups.
739
740 2007-08-28 Sascha L. Teichmann <[email protected]>
741
742 * tools/formed/formed/io/document.py: Avoid saving empty
743 attributes.
744
745 * tools/formed/test-data/simple.xml: Applied.
746
747 2007-08-28 Sascha L. Teichmann <[email protected]>
748
749 * tools/formed/formed/model/data.py: Added 'repeat' and
750 'invisible' attributes to group. TODO: remove logical group.
751
752 2007-08-27 Torsten Irlaender <[email protected]>
753
754 * tools/formed/plugins/web/plugin.py,
755 tools/formed/plugins/web/renderer.py: Started to include stylesheet
756 depending tags in the html generation.
757
758 2007-08-27 Sascha L. Teichmann <[email protected]>
759
760 * tools/formed/formed/model/data.py,
761 tools/formed/formed/io/document.py: Added a logical group.
762 It has an attribute 'repeat' to indicate that it might
763 be worthy an external table in DB schema.
764
765 2007-08-27 Sascha L. Teichmann <[email protected]>
766
767 * tools/formed/formed/plugins/web/plugin.py: Support
768 serving of static content.
769
770 * tools/formed/formed/plugins/web/server.py: Removed
771 old send code.
772
773 2007-08-27 Sascha L. Teichmann <[email protected]>
774
775 * tools/formed/formed/plugins/web/plugin.py: Use new
776 Response object. Fix typo.
777
778 * tools/formed/formed/plugins/web/server.py: support
779 response object to serve different MIME types.
780
781 2007-08-27 Sascha L. Teichmann <[email protected]>
782
783 * tools/formed/formed/plugins/web/plugin.py: Add web.path
784 to FORMED environment variable to specify the
785 root of the static content.
786
787 2007-08-26 Sascha L. Teichmann <[email protected]>
788
789 * tools/formed/formed/model/data.py,
790 tools/formed/formed/model/nodecomponents.py: Fixed mode issues.
791
792 * tools/formed/formed/plugins/web/www,
793 tools/formed/formed/plugins/web/www/main.tmpl: New. Contains
794 a template for the HTML output.
795
796 * tools/formed/formed/plugins/web/plugin.py: Fixes several smaller
797 mode issues. Introduces CSS support. Simplified the action
798 handling.
799
800 * tools/formed/formed/plugins/web/renderer.py: Removed the
801 nagivation code.
802
803 * tools/formed/formed/plugins/web/server.py: Added missing import.
804
805 2007-08-26 Sascha L. Teichmann <[email protected]>
806
807 * tools/formed/formed/model/data.py: Added missing broadcast
808 parameter to setAttribute() of RuleLeaf.
809
810 * tools/formed/formed/plugins/web/plugin.py: Factorize
811 HTTP server code out to separate module.
812
813 * tools/formed/formed/plugins/web/renderer.py: Removed
814 needless -1 from pop()
815
816 * tools/formed/formed/plugins/web/server.py: New. Contains
817 the HTTP server code now.
818
819 2007-08-26 Sascha L. Teichmann <[email protected]>
820
821 * tools/formed/test-data/simple.xml: Modified to contain a rule.
822
823 * tools/formed/formed/model/expr.py: Added. A simple RPN
824 expression evaluator. To avoid the problem of eval()ing
825 arbitrary python expressions I've decided to use a very
826 basic and limited stack machine to support rule checking.
827
828 * tools/formed/formed/model/data.py: Added a RuleLeaf.
829
830 * tools/formed/formed/io/document.py: Added factories for rules.
831
832 * tools/formed/formed/model/nodecomponents.py: Add a method
833 to find all items of a given type in document for a given
834 mode. Usefull to find all rules in the tree.
835
836 * tools/formed/formed/ui/controls.py: Added a listener mechanism
837 to attribute table to report exceptions when setting a value
838 from GUI. Useful to report compilation errors when setting
839 expr of rule leafs.
840
841 * tools/formed/formed/main.py: Added a method to track exceptions
842 from the attribute table and pop up dialogs if they occur.
843 Added a counter of rule modifications in tree. Useful if you
844 want build cached data structures like rule sets and you want
845 to know if they are still valid.
846
847 2007-08-24 Torsten Irlaender <[email protected]>
848
849 * tools/formed/formed/plugins/export/sql.py: Fixed CHECK-constraint
850 for checkbox values. (Syntax error).
851
852 * tools/formed/formed/plugins/names/filter.py: Fixes in formularname
853 generation
854
855 2007-08-24 Torsten Irlaender <[email protected]>
856
857 * tools/formed/formed/plugins/names/filter.py: Separated Class for
858 making the formularnames more database friendly. Added some more
859 checks.
860 * tools/formed/formed/plugins/export/sql.py: Make use of the fresh
861 separated class, and some fixes in sql generation.
862
863 2007-08-24 Sascha L. Teichmann <[email protected]>
864
865 * tools/formed/formed/plugins/export/html.py: Print lengths
866 of external choice list.
867
868 2007-08-24 Sascha L. Teichmann <[email protected]>
869
870 * tools/formed/formed/main.py: Little workaround for
871 mode selection if someone adds an removes a mode.
872
873 2007-08-24 Sascha L. Teichmann <[email protected]>
874
875 * tools/formed/test-data/simple.xml: Better test case for
876 mode depended leaf items.
877
878 * tools/formed/formed/model/nodecomponents.py: Added a method
879 to calculate the effective mode of an item.
880
881 * tools/formed/formed/plugins/export/html.py: Use effective
882 mode. TODO: the 'all' modus return false results sometimes.
883 Cause: The modes are only cumulated over time. Removal is
884 not done.
885
886 2007-08-24 Sascha L. Teichmann <[email protected]>
887
888 * tools/formed/formed/plugins/export/html.py: Dump the items
889 of radio groups and choices too.
890
891 2007-08-24 Torsten Irlaender <[email protected]>
892
893 * tools/formed/formed/plugins/names/filter.py: Modified the renaming
894 by formular names to make the naming more database friendly.
895 Now only alphanumeric and underscore chars is allowed.
896
897 2007-08-24 Sascha L. Teichmann <[email protected]>
898
899 * tools/formed/formed/plugins/export/html.py: Tweaked
900 HTML table exporter a bit to be on par with the XSLT
901 script. TODO: Dump items in radio and choice groups.
902
903 2007-08-23 Sascha L. Teichmann <[email protected]>
904
905 * tools/formed/formed/plugins/names/filter.py: Removed
906 HTML and SQL exporters.
907
908 * tools/formed/formed/plugins/export,
909 tools/formed/formed/plugins/export/__init__.py,
910 tools/formed/formed/plugins/export/sql.py,
911 tools/formed/formed/plugins/export/html.py: New: Contain
912 the HTML and the SQL exporters now.
913
914 * tools/formed/formed/config.py: Use exporters from different
915 package now.
916
917 2007-08-23 Torsten Irlaender <[email protected]>
918
919 * tools/formed/formed/plugins/names/filter.py: Added an
920 pseudo SQL export filters. TODO: Move HTML and SQL filter
921 in a new file (formed/plugins/export/htmlexport.py and
922 sqlexport.py?)
923
924 * tools/formed/formed/config.py: Install the new SQL filter.
925
926 2007-08-23 Sascha L. Teichmann <[email protected]>
927
928 * tools/formed/formed/model/nodecomponents.py: Added a depth()
929 method to determine the depth of particular tree item.
930
931 * tools/formed/formed/plugins/names/filter.py: Added an
932 HTML export filters. TODO: needs more work.
933
934 * tools/formed/formed/config.py: Install the new HTML filter.
935
936 2007-08-23 Torsten Irlaender <[email protected]>
937
938 * contrib/extract-xfa-fields_and_options.xsl: Added small xsl script
939 to extract fields and options in the XFA Data in teh PDF. This
940 script might me handy to indicate changes between the different
941 formular versions.
942
943 2007-08-23 Sascha L. Teichmann <[email protected]>
944
945 * tools/formed/formed/main.py: Add an 'all' mode to
946 select all modes. ;-)
947
948 2007-08-22 Sascha L. Teichmann <[email protected]>
949
950 * tools/formed/test-data/simple.xml,
951 tools/formed/formed/model/data.py,
952 tools/formed/formed/plugins/web/plugin.py,
953 tools/formed/formed/plugins/web/renderer.py,
954 tools/formed/formed/io/document.py,
955 tools/formed/formed/main.py: Removed support for switch nodes.
956 BEWARE: This breaks compatibility with older documents!
957
958 2007-08-22 Sascha L. Teichmann <[email protected]>
959
960 * tools/formed/formed/plugins/web/plugin.py: Uses the
961 getSelectedMode() from main now.
962
963 * tools/formed/formed/main.py: selected mode is now hold
964 in main.
965
966 * tools/formed/formed/config.py: removed selected mode from
967 env configuration.
968
969 2007-08-22 Sascha L. Teichmann <[email protected]>
970
971 * tools/formed/formed/ui/controls.py: Attributes in GUI attribute
972 table are now alphabetically sorted.
973
974 2007-08-22 Sascha L. Teichmann <[email protected]>
975
976 * tools/formed/formed/model/nodecomponents.py: Added code to
977 establish the new 'modes' recursively.
978
979 * tools/formed/formed/plugins/plugin.py: Pass main instead
980 of cfg on plug-in start-up.
981
982 * tools/formed/formed/plugins/web/plugin.py: Use the new
983 'modes' attribute for rendering.
984
985 * tools/formed/formed/plugins/web/renderer.py: Use decorators
986 to check the new modes.
987
988 * tools/formed/formed/main.py: Adjusted to new infrastructure.
989
990 2007-08-22 Sascha L. Teichmann <[email protected]>
991
992 * tools/formed/formed/model/nodecomponents.py: Added an
993 attribute 'modes' to NodeComponents.
994
995 2007-08-22 Sascha L. Teichmann <[email protected]>
996
997 * tools/formed/formed/model/data.py: Small cosmetic cleanups
998
999 2007-08-21 Sascha L. Teichmann <[email protected]>
1000
1001 * tools/formed/formed/plugins/web/renderer.py: Another fix
1002 for the hidden field. Argh!
1003
1004 2007-08-21 Sascha L. Teichmann <[email protected]>
1005
1006 * tools/formed/formed/plugins/web/renderer.py: Fixed double
1007 generation of hidden page field.
1008
1009 2007-08-21 Sascha L. Teichmann <[email protected]>
1010
1011 * tools/formed/formed/plugins/web/semantic.py: Added semantic
1012 checks for radio groups.
1013
1014 2007-08-21 Sascha L. Teichmann <[email protected]>
1015
1016 * tools/formed/formed/plugins/web/semantic.py: Added semantic
1017 checks for choices.
1018
1019 2007-08-21 Frank Koormann <[email protected]>
1020
1021 * contrib/convert-formedtree2html.xsl: Display switch nodes as
1022 alternatives.
1023
1024 2007-08-21 Frank Koormann <[email protected]>
1025
1026 * contrib/convert-formedtree2html.xsl:
1027 Replace technical types with readable descriptions
1028
1029 2007-08-21 Sascha L. Teichmann <[email protected]>
1030
1031 * tools/formed/formed/plugins/web/plugin.py: Fix a few smaller
1032 issues. 'action' looks for all widgets on a page now, goes
1033 through all passed parameters, tries to match them with the
1034 widgets of the page and put them into the semantic box.
1035 Afterwards a list of untouched page parameters are left
1036 which will be deleted from the semantic box.
1037
1038 * tools/formed/formed/plugins/web/semantic.py: Simplified.
1039 The NodeComponent is passed as an argument now.
1040
1041 * tools/formed/formed/plugins/web/renderer.py: Generate a
1042 hidden field to store the name of the page.
1043
1044 2007-08-21 Sascha L. Teichmann <[email protected]>
1045
1046 * tools/formed/formed/plugins/web/plugin.py: Fixed an encoding
1047 issue with incoming UTF-8 data.
1048
1049 2007-08-21 Sascha L. Teichmann <[email protected]>
1050
1051 * tools/formed/test-data/simple.xml: Improve test for widgets
1052 in switches.
1053
1054 * tools/formed/formed/model/data.py: Added a method to find all
1055 widgets in a given page. Fixed a bug when walking in switch
1056 with a given mode.
1057
1058 * tools/formed/formed/plugins/web/plugin.py: Simple test for
1059 listing all widgets in page.
1060
1061 2007-08-21 Torsten Irlaender <[email protected]>
1062
1063 * tools/formed/formed/plugins/names/filter.py: Fixed file-encoding to
1064 latin-1
1065
1066 2007-08-21 Sascha L. Teichmann <[email protected]>
1067
1068 * tools/formed/formed/model/data.py: Added mode parameter to
1069 walk.
1070
1071 * tools/formed/formed/model/nodecomponents.py: SwitchNode overwrites
1072 walk() with usage of the new mode parameter. Added a method to
1073 give children in a given mode.
1074
1075 * tools/formed/formed/plugins/web/renderer.py: Simplified to use
1076 new Switch.childrenInMode() method.
1077
1078 2007-08-21 Sascha L. Teichmann <[email protected]>
1079
1080 * tools/formed/formed/plugins/web/semantic.py: Add checks for
1081 texts and text areas.
1082
1083 * tools/formed/formed/plugins/web/renderer.py: Set accept-charset
1084 to UTF-8 in generated form.
1085
1086 2007-08-20 Sascha L. Teichmann <[email protected]>
1087
1088 * tools/formed/formed/plugins/web/semantic.py: Added semantic
1089 tests for dates.
1090
1091 2007-08-20 Sascha L. Teichmann <[email protected]>
1092
1093 * tools/formed/test-data/simple.xml: Tweak a bit for integer
1094 range test.
1095
1096 * tools/formed/formed/model/nodecomponents.py: Added a method
1097 to find a tree item for a given name.
1098
1099 * tools/formed/formed/plugins/web/semantic.py: New: Box for
1100 semantic checking. Has check for integers.
1101
1102 * tools/formed/formed/plugins/web/plugin.py: Use semantic
1103 check.
1104
1105 2007-08-20 Torsten Irlaender <[email protected]>
1106
1107 * tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in
1108 selection-field generation (Removed quote)
1109
1110 2007-08-18 Sascha L. Teichmann <[email protected]>
1111
1112 * tools/formed/formed/plugins/web/plugin.py,
1113 tools/formed/formed/plugins/web/renderer.py: Added a
1114 simple cookie based session management to the HTML
1115 renderer. This submit parameters are stored in the
1116 session now. This will ease testing the constraint
1117 tests which need to be written soon.
1118
1119 BEWARE: The session management is _not_ made for production!
1120 Denial of service attacks are too easy, and the
1121 cryptographical strength of the session id is doubtful.
1122
1123 2007-08-18 Sascha L. Teichmann <[email protected]>
1124
1125 * tools/formed/formed/plugins/web/renderer.py: Escaping text
1126 coming from the document tree now when inserting it into the
1127 HTML output.
1128
1129 2007-08-18 Sascha L. Teichmann <[email protected]>
1130
1131 * tools/formed/formed/plugins/plugin.py: Added a new kind
1132 of plug-in: Filter. They have a short and a long description
1133 and can be hooked automatically into the new 'Filters'
1134 sub menu under 'Extra'. They got called when the user
1135 selects their respective menu item.
1136
1137 * tools/formed/formed/config.py: Contains the list of
1138 installed filters.
1139
1140 * tools/formed/formed/main.py: Builds the Extra->Filters
1141 sub menu during gui initialization. The hard wired code
1142 for make unique and formular name/description -> name
1143 is removed because they are implemented as filters now.
1144
1145 * tools/formed/formed/model/nodecomponents.py,
1146 tools/formed/formed/model/data.py: Removed the make
1147 unique and formular name/description -> name code.
1148
1149 * tools/formed/formed/plugins/names,
1150 tools/formed/formed/plugins/names/__init__.py,
1151 tools/formed/formed/plugins/names/filter.py: Added. Contains
1152 the make unique and formular name/description -> name code
1153 in form of filters.
1154
1155 * tools/formed/test-data/simple.xml: Modified to be a better
1156 test for the formular name/description -> name filter.
1157
1158 2007-08-18 Sascha L. Teichmann <[email protected]>
1159
1160 * tools/formed/formed.py, tools/formed/formed/main.py: First
1161 command line argument is interpreted as filename of document
1162 to be loaded at program startup.
1163
1164 2007-08-17 Frank Koormann <[email protected]>
1165
1166 * contrib/convert-formedtree2html.xsl:
1167 Heading level depending on depth of group node.
1168 In case of radio/choice/check only list of options.
1169
1170 2007-08-17 Torsten Irlaender <[email protected]>
1171
1172 * contrib/convert-formedtree2html.xsl: Output is now generated with
1173 HTML doc-string and charset information in the meta-header.
1174
1175 2007-08-17 Torsten Irlaender <[email protected]>
1176
1177 * contrib/convert-formedtree2html.xsl: Added small script for
1178 exporting the formed tree to html
1179
1180 2007-08-17 Torsten Irlaender <[email protected]>
1181
1182 * tools/formed/model/nodecomponents.py: Added function to rename
1183 the set the name of the node to the formularname. The formularname
1184 gets shorten to <=64 by removing vowels and is stored lowercase.
1185 If the name is not unique and additional id value is appended.
1186
1187 * tools/formed/formed/model/data.py: Overwritten renaming-function for
1188 bool-leafs
1189
1190 * tools/formed/formed/main.py: Added menuitem for renaming the names
1191 of the element
1192
1193 2007-08-16 Sascha L. Teichmann <[email protected]>
1194
1195 * tools/formed/formed/main.py: Swaped order of
1196 'Make names unique' and 'Selected mode...' in Extra
1197 menu and put a separator between them.
1198
1199 2007-08-15 Sascha L. Teichmann <[email protected]>
1200
1201 * tools/formed/formed/model/data.py: SwitchNodes can add
1202 their modes to a given set now.
1203
1204 * tools/formed/formed/plugins/plugin.py: Simplified
1205 the plug-in interface. Only the reference to the
1206 global configuration is passed at setup time.
1207
1208 * tools/formed/formed/plugins/web/plugin.py: Adjusted
1209 to new plug-in setup. The traveral mode is now taken
1210 from the global configuration each time a rendering
1211 is triggered. The FORMED parameter is now named
1212 'doc.mode' instead of 'web.mode'. The parameter
1213 is not needed any more because it can be configured
1214 at runtime.
1215
1216 * tools/formed/formed/main.py: Adjusted to new plugin
1217 setup. Added a new menu item Extra->Select Mode...
1218 to select the traversal mode. It is stored in the
1219 global config.
1220
1221 * tools/formed/formed/config.py: Simplified. Only uses
1222 one env dictionary to store global configuration parameters.
1223
1224 * tools/formed/formed/ui/controls.py: Add a control to
1225 select one item from a list of given strings.
1226
1227 2007-08-15 Sascha L. Teichmann <[email protected]>
1228
1229 * tools/formed/formed/plugins/web/plugin.py,
1230 tools/formed/formed/plugins/web/renderer.py: Added parameter
1231 print out in web plugin.
1232
1233 2007-08-15 Torsten Irlaender <[email protected]>
1234
1235 * contrib/convert-formedtree2csv.xsl: Added small script for
1236 exporting the formed tree to csv
1237
1238 2007-08-14 Sascha L. Teichmann <[email protected]>
1239
1240 * tools/formed/formed/model/data.py,
1241 tools/formed/formed/model/nodecomponents.py,
1242 tools/formed/formed/io/document.py: Added a 'switch' node.
1243
1244 * tools/formed/formed/plugins/web/renderer.py:Render the
1245 new 'switch' node.
1246
1247 * tools/formed/formed/plugins/web/plugin.py,
1248 tools/formed/formed/config.py: Added a 'web.mode' parameter
1249 to FORMED environment variable.
1250 e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'.
1251 Defaults to 'default'.
1252
1253 * tools/formed/test-data/simple.xml: Added test for switch.
1254
1255 2007-08-14 Sascha L. Teichmann <[email protected]>
1256
1257 * tools/formed/formed/model/nodecomponents.py: Added an
1258 attribute 'formularname' to base class of node components.
1259
1260 2007-08-13 Sascha L. Teichmann <[email protected]>
1261
1262 * tools/formed/formed/io/document.py,
1263 tools/formed/formed/model/data.py,
1264 tools/formed/formed/model/nodecomponents.py: Added an item
1265 to model external item lists.
1266
1267 * tools/formed/formed/plugins/web/renderer.py: Render new item
1268 list.
1269 * tools/formed/formed/main.py: Added a forgotten 'self.'
1270
1271 * contrib/extract-xfa-items.sh: Modified to generate
1272 documents to be loadable from new item lists
1273
1274 2007-08-13 Sascha L. Teichmann <[email protected]>
1275
1276 * tools/formed/formed/main.py: Fixed typo
1277
1278 2007-08-13 Sascha L. Teichmann <[email protected]>
1279
1280 * contrib/extract-xfa-items.sh: New. Can be used to extract longer
1281 choice item lists for a given field from XFA files. e.g. with
1282 './contrib/extract-xfa-items.sh Muttersprache alles.xml'
1283
1284 2007-08-12 Sascha L. Teichmann <[email protected]>
1285
1286 * tools/formed/formed/model/data.py,
1287 tools/formed/formed/plugins/web/renderer.py,
1288 tools/formed/formed/io/document.py: Changed the structure
1289 of choice constructs. The idea to hold the different items
1290 of a particular choice in a semicolon separated list was bad.
1291 Now choices are groups and the option items are modelled as
1292 embedded bools. (mainly Torsten Irländer's idea).
1293
1294 WARNING: this makes old document files containing choices incompatible!!!
1295 Use the following XSLT to reestablish compatibility.
1296
1297 * contrib/itemize-choices.xsl: New converts old to new structure.
1298 Needs exslt.org's string extensions (which xsltproc includes)
1299
1300 * tools/formed/test-data/simple.xml: Ajusted to new structure
1301
1302 * tools/formed/formed/plugins/web/plugin.py: remove debug output
1303
1304 * tools/formed/formed/model/nodecomponents.py: fixed a small bug in
1305 node finding code. It now uses the walk() generator, too.
1306
1307 2007-08-12 Sascha L. Teichmann <[email protected]>
1308
1309 * tools/formed/formed/main.py: Added a clone item on the toolbar which
1310 copies the currently selected item and appends it after the selection.
1311
1312 * tools/formed/formed/model/nodecomponents.py: Added code to clone parts
1313 of the tree.
1314
1315 * tools/formed/formed/ui/controls.py: Added a getSelected method.
1316
1317 * tools/formed/formed/model/misc.py: Fixed a programming bug.
1318 forgot a 'self.' prefix.
1319
1320 2007-08-12 Sascha L. Teichmann <[email protected]>
1321
1322 * tools/formed/formed/model/nodecomponents.py: Added a method to append
1323 a second document to the current.
1324
1325 * tools/formed/formed/main.py: Added an 'Import' file menu item to load
1326 a second document to be appended to the current.
1327
1328 2007-08-12 Sascha L. Teichmann <[email protected]>
1329
1330 * tools/formed/formed/main.py: Added a 'New' item in file menu which creates
1331 a new document when triggered.
1332
1333 2007-08-12 Sascha L. Teichmann <[email protected]>
1334
1335 * tools/formed/formed/model/nodecomponents.py: Added walk generator over all
1336 items in the document tree. Added a method to eliminated duplicated names
1337 in document tree.
1338
1339 * tools/formed/formed/model/misc.py: Added update mechanism for id generator
1340 after names collisions are eliminated.
1341
1342 * tools/formed/formed/main.py: Added an 'Extra' menu with item
1343 'Make names unique'.
1344
1345 2007-08-11 Sascha L. Teichmann <[email protected]>
1346
1347 * tools/formed/formed/model/data.py,
1348 tools/formed/formed/plugins/web/renderer.py: Removed support
1349 for 'text' attributes in bool items. They were never really
1350 used and the 'description' attributes fulfill the same
1351 purpose.
1352
1353 * contrib/remove-bool-text.xsl: Transform to remove the
1354 'text' attributes from bool items. Apply with:
1355 'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml'
1356
1357 * tools/formed/test-data/simple.xml: Removed 'text' attributes
1358 from bool items.
1359
1360 2007-08-11 Sascha L. Teichmann <[email protected]>
1361
1362 * contrib/convert-choices.xsl: Simpified.
1363
1364 2007-08-11 Sascha L. Teichmann <[email protected]>
1365
1366 * tools/formed/formed/model/data.py: Removed 'options' attribute
1367 from ChoiceLeaf. Use 'value' instead, please!
1368
1369 * tools/formed/formed/plugins/web/renderer.py: use 'value' attribute
1370 instead of 'options' to render choices.
1371
1372 * contrib/convert-choices.xsl: Added to convert document files
1373 which use the choice 'option' attribute to usage of 'value'.
1374 Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml'
1375
1376 2007-08-10 Sascha L. Teichmann <[email protected]>
1377
1378 * tools/formed/formed/plugins/web/renderer.py: radio buttons
1379 are selected by 'checked' and not by 'selected'. Fixed.
1380
1381 2007-08-10 Sascha L. Teichmann <[email protected]>
1382
1383 * tools/formed/formed/model/data.py: ChoiceLeafs are now
1384 initialized with size = 1.
1385
1386 2007-08-10 Sascha L. Teichmann <[email protected]>
1387
1388 * tools/formed/formed/model/data.py: TextLeafs are now
1389 initialized with size = 40, maxlength = 60
1390
1391 2007-08-10 Sascha L. Teichmann <[email protected]>
1392
1393 * tools/formed/formed/plugins/web/renderer.py: Fixed: choices
1394 are renderered with description now.
1395
1396 2007-08-10 Sascha L. Teichmann <[email protected]>
1397
1398 * tools/formed/formed/plugins/web/renderer.py: Added rendering
1399 for date items. Added missing ids for texts and textareas.
1400
1401 2007-08-10 Sascha L. Teichmann <[email protected]>
1402
1403 * tools/formed/formed/config.py: Evaluate the environment
1404 variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2'
1405
1406 * tools/formed/formed/plugins/plugin.py: Give a reference
1407 to the config at setup time.
1408
1409 * tools/formed/formed/plugins/web/plugin.py: To determine
1410 the port look at FORMED dictionary first. Key is 'web.port'.
1411 e.g. FORMED='web.port:8888'
1412
1413 * tools/formed/formed/main.py: Call the plugin setup with
1414 the reference to the config.
1415
1416 2007-08-10 Sascha L. Teichmann <[email protected]>
1417
1418 * tools/formed/test-data/simple.xml: removed 'text' attributes from
1419 info tags. Use the 'value' attributes for same purpose now, please!
1420
1421 * tools/formed/formed/model/data.py: removed text attributes from
1422 InfoLeaf.
1423
1424 * tools/formed/formed/plugins/web/renderer.py: Rendering of info
1425 now uses the 'value' instead of the 'text' attributes.
1426
1427 2007-08-09 Sascha L. Teichmann <[email protected]>
1428
1429 * tools/formed/formed/model/data.py: next/prevPage() are
1430 methods of PageNode now.
1431
1432 * tools/formed/formed/model/nodecomponents.py: findByClassAndName()
1433 is method of Document now.
1434
1435 * tools/formed/formed/plugins/web/plugin.py: Factored out
1436 the HTML renderer.
1437
1438 * tools/formed/formed/plugins/web/renderer.py: New: contains
1439 the HTML renderer now.
1440
1441 * tools/formed/test-data/simple.xml: Fixed typo
1442
1443 2007-08-09 Sascha L. Teichmann <[email protected]>
1444
1445 * tools/formed/formed/plugins/web/plugin.py: Fixed a bug
1446 in calculation of width of bounded int fields.
1447
1448 2007-08-09 Sascha L. Teichmann <[email protected]>
1449
1450 * tools/formed/test-data/simple.xml: Make demo Int fancier.
1451
1452 * tools/formed/formed/model/data.py: Added attributes to IntLeaf
1453
1454 * tools/formed/formed/plugins/web/plugin.py: Added rendering for
1455 Ints
1456
1457 2007-08-09 Sascha L. Teichmann <[email protected]>
1458
1459 * tools/formed/test-data/simple.xml: Added demo textarea
1460
1461 * tools/formed/formed/model/data.py: Added TextAreaLeaf
1462
1463 * tools/formed/formed/io/document.py: register builder
1464 for loading of textareas
1465
1466 * tools/formed/formed/plugins/web/plugin.py: Added rendering
1467 for textareas.
1468
1469 2007-08-09 Sascha L. Teichmann <[email protected]>
1470
1471 * tools/formed/test-data/simple.xml: Make demo choice fancier.
1472
1473 * tools/formed/formed/model/data.py: Added attributes for texts
1474
1475 * tools/formed/formed/plugins/web/plugin.py: Added rendering
1476 for texts
1477
1478 2007-08-09 Sascha L. Teichmann <[email protected]>
1479
1480 * tools/formed/test-data/simple.xml: Make demo choice fancier.
1481
1482 * tools/formed/formed/model/data.py: Added attributes for choices.
1483
1484 * tools/formed/formed/plugins/web/plugin.py: Added rendering
1485 for choices
1486
1487 2007-08-09 Sascha L. Teichmann <[email protected]>
1488
1489 * tools/formed/formed/model/data.py,
1490 tools/formed/formed/model/nodecomponents.py: Added new
1491 attributes.
1492
1493 * tools/formed/formed/plugins/web/plugin.py: Added rendering
1494 for checkboxes and radio buttons.
1495
1496 2007-08-08 Sascha L. Teichmann <[email protected]>
1497
1498 * tools/formed/test-data/simple.xml: Added some descriptions
1499
1500 * tools/formed/formed/model/data.py: set attributes in constructors
1501 directly.
1502
1503 * tools/formed/formed/model/nodecomponents.py: Added description
1504 attribute in the NodeComponent base class.
1505
1506 * tools/formed/formed/plugins/web/plugin.py: Render description
1507 as legend in fieldset for GroupNodes.
1508
1509 2007-08-08 Sascha L. Teichmann <[email protected]>
1510
1511 * tools/formed/formed/plugins/web/plugin.py: make UTF-8
1512 output work.
1513
1514 2007-08-08 Sascha L. Teichmann <[email protected]>
1515
1516 * tools/formed/formed/model/data.py: Added get/setText() method
1517
1518 * tools/formed/formed/plugins/web/plugin.py: Added a first
1519 version of a recursive HTML renderer based on the document
1520 tree.
1521
1522 2007-08-08 Sascha L. Teichmann <[email protected]>
1523
1524 * tools/formed/formed/plugins/*: New: plug-in infrastructure.
1525
1526 * tools/formed/formed/plugins/web/*: new: A simple web server
1527 which is intended to serve pages of the current formular.
1528
1529 * tools/formed/formed/main.py: start the plug-ins
1530
1531 * tools/formed/formed/config.py: configuration class. Used
1532 for the plug-ins.
1533
1534 2007-08-08 Sascha L. Teichmann <[email protected]>
1535
1536 * tools/formed/formed/model/nodecomponents.py: Fixed broadcasting
1537 issue with zero length tree paths.
1538
1539 * tools/formed/formed/model/misc.py: New: contains a class
1540 for generating unique ids.
1541
1542 * tools/formed/formed/main.py: Added an instance of an
1543 unique id generator for naming of new made tree items.
1544
1545 2007-08-07 Sascha L. Teichmann <[email protected]>
1546
1547 * tools/formed/formed/main.py: Added event route document ->
1548 attribute table to get informed when selected item is delete
1549 or an attribute is changed from the outside.
1550
1551 * tools/formed/formed/ui/controls.py: Fixed. In older versions of
1552 wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead
1553 of 3 argument. Uses icons+tooltips for tree navigation now.
1554
1555 2007-08-07 Sascha L. Teichmann <[email protected]>
1556
1557 * tools/formed/formed/model/nodecomponents.py: Set name
1558 attribute in base class.
1559
1560 * tools/formed/formed/io/document.py: Added a table
1561 names -> classes.
1562
1563 * tools/formed/formed/main.py: Added a toolbar. Added code
1564 to create and delete tree items.
1565
1566 * tools/formed/formed/ui/controls.py: Added code to
1567 insert and delete new tree items.
1568
1569 2007-08-07 Sascha L. Teichmann <[email protected]>
1570
1571 * tools/formed/formed/model/nodecomponents.py: Fixed event
1572 broadcasting for attribute changes.
1573
1574 * tools/formed/formed/ui/controls.py: Add a list/table control to
1575 edit the attributes of a selected item.
1576
1577 * tools/formed/formed/main.py: Added code to bind the new
1578 list/table control.
1579
1580 2007-08-06 Sascha L. Teichmann <[email protected]>
1581
1582 * tools/formed/formed/main.py: Added event routes to move
1583 items in and out of groups.
1584
1585 * tools/formed/formed/ui/controls.py: Added code to move
1586 items in and out of groups.
1587
1588 2007-08-06 Sascha L. Teichmann <[email protected]>
1589
1590 * tools/formed/formed/model/nodecomponents.py: Fixed path
1591 calculation to root and event broadcasting
1592
1593 * tools/formed/formed/io/factories.py: Adjust to new
1594 event broadcasting.
1595
1596 * tools/formed/formed/main.py: Added code to move items
1597 up and down the document tree.
1598
1599 * tools/formed/formed/ui/controls.py: Establish sort order
1600 by indices of children in parent instead of alphanum.
1601 Code to move items up and down the document tree.
1602
1603 * tools/formed/formed/io/document.py: Added missing imports.
1604
1605 2007-08-06 Sascha L. Teichmann <[email protected]>
1606
1607 * tools/formed/formed.py: Added to avoid problems with
1608 ambiguous absolute module names. Thanks to Bernhard Herzog
1609
1610 * tools/formed/formed.sh: Starts formed.py now
1611
1612 * tools/formed/formed/main.py,
1613 tools/formed/formed/ui/controls.py: Added control to
1614 move items around in tree. Has no effect by now.
1615
1616 2007-08-05 Sascha L. Teichmann <[email protected]>
1617
1618 * tools/formed/formed/io/parser.py: Adjusted style
1619
1620 * tools/formed/formed/io/document.py,
1621 tools/formed/formed/io/factories.py: Simplified factory
1622 model for XML loading.
1623
1624 2007-08-05 Sascha L. Teichmann <[email protected]>
1625
1626 * ChangeLog: started ChangeLog
1627
1628 * tools/formed/*: initial check-in of the Formular Editor.
1629 Not working yet. Only can load, view and store formular XML files.
1630 Start it with 'tools/formed/formed.sh'.

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26