/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26