/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26