/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 194 - (show annotations)
Thu Sep 27 10:18:08 2007 UTC (17 years, 5 months ago) by torsten
File size: 59024 byte(s)
nameplugin: pages will now the transformed into db-friendly names as well.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26