/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 211 - (show annotations)
Sun Oct 21 09:45:58 2007 UTC (17 years, 4 months ago) by frank
File size: 62629 byte(s)
* tools/formed/formed/plugins/export/sql.py: "CREATE OR REPLACE" 
	statements for views and roles to make updates easier.
	Add "admin_ka" membership as third option to VIEW_WHERE_CLAUSE.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26