/[formed]/trunk/ChangeLog
ViewVC logotype

Annotation of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 265 - (hide annotations)
Tue Apr 29 08:14:07 2008 UTC (16 years, 9 months ago) by teichmann
File size: 72315 byte(s)
Added support for choice fields in XSD export.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26