/[formed]/trunk/ChangeLog
ViewVC logotype

Annotation of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (hide annotations)
Mon Sep 17 19:25:05 2007 UTC (17 years, 5 months ago) by torsten
File size: 56754 byte(s)
Webplugin: Small tweaks in formrendering

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26