/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 180 - (show annotations)
Wed Sep 12 12:06:27 2007 UTC (17 years, 5 months ago) by torsten
File size: 54734 byte(s)
webplugin: Added errormsg for choicelists. prettyprint bad values

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26