/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 213 - (show annotations)
Tue Oct 23 14:39:20 2007 UTC (17 years, 4 months ago) by frank
File size: 62941 byte(s)
* tools/formed/formed/plugins/export/sql.py: 
	Set default value (-1) for choices and bools.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26