/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26