/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (show annotations)
Tue Sep 25 17:00:50 2007 UTC (17 years, 5 months ago) by torsten
File size: 58034 byte(s)
webplugin: fix on viewrenderer

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26