/[formed]/trunk/ChangeLog
ViewVC logotype

Diff of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.143  
changed lines
  Added in v.238

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26