/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 179 - (show annotations)
Wed Sep 12 10:15:53 2007 UTC (17 years, 5 months ago) by torsten
File size: 54453 byte(s)
Webplugin: Fixed bug that choicelist did not get selected when the value is set to "0"

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26