/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26