/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26