/[formed]/trunk/ChangeLog
ViewVC logotype

Annotation of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26