/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26