/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26