/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (show annotations)
Mon Sep 17 19:25:05 2007 UTC (17 years, 5 months ago) by torsten
File size: 56754 byte(s)
Webplugin: Small tweaks in formrendering

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26