/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 61 - (show annotations)
Tue Aug 21 04:21:54 2007 UTC (17 years, 6 months ago) by teichmann
File size: 19064 byte(s)
Add semantic tests for texts. Set accept-charset in generated HTML form to UTF-8
1 2007-08-21 Sascha L. Teichmann <[email protected]>
2
3 * tools/formed/formed/plugins/web/semantic.py: Add checks for
4 texts and text areas.
5
6 * tools/formed/formed/plugins/web/renderer.py: Set accept-charset
7 to UTF-8 in generated form.
8
9 2007-08-20 Sascha L. Teichmann <[email protected]>
10
11 * tools/formed/formed/plugins/web/semantic.py: Added semantic
12 tests for dates.
13
14 2007-08-20 Sascha L. Teichmann <[email protected]>
15
16 * tools/formed/test-data/simple.xml: Tweak a bit for integer
17 range test.
18
19 * tools/formed/formed/model/nodecomponents.py: Added a method
20 to find a tree item for a given name.
21
22 * tools/formed/formed/plugins/web/semantic.py: New: Box for
23 semantic checking. Has check for integers.
24
25 * tools/formed/formed/plugins/web/plugin.py: Use semantic
26 check.
27
28 2007-08-20 Torsten Irlaender <[email protected]>
29
30 * tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in
31 selection-field generation (Removed quote)
32
33 2007-08-18 Sascha L. Teichmann <[email protected]>
34
35 * tools/formed/formed/plugins/web/plugin.py,
36 tools/formed/formed/plugins/web/renderer.py: Added a
37 simple cookie based session management to the HTML
38 renderer. This submit parameters are stored in the
39 session now. This will ease testing the constraint
40 tests which need to be written soon.
41
42 BEWARE: The session management is _not_ made for production!
43 Denial of service attacks are too easy, and the
44 cryptographical strength of the session id is doubtful.
45
46 2007-08-18 Sascha L. Teichmann <[email protected]>
47
48 * tools/formed/formed/plugins/web/renderer.py: Escaping text
49 coming from the document tree now when inserting it into the
50 HTML output.
51
52 2007-08-18 Sascha L. Teichmann <[email protected]>
53
54 * tools/formed/formed/plugins/plugin.py: Added a new kind
55 of plug-in: Filter. They have a short and a long description
56 and can be hooked automatically into the new 'Filters'
57 sub menu under 'Extra'. They got called when the user
58 selects their respective menu item.
59
60 * tools/formed/formed/config.py: Contains the list of
61 installed filters.
62
63 * tools/formed/formed/main.py: Builds the Extra->Filters
64 sub menu during gui initialization. The hard wired code
65 for make unique and formular name/description -> name
66 is removed because they are implemented as filters now.
67
68 * tools/formed/formed/model/nodecomponents.py,
69 tools/formed/formed/model/data.py: Removed the make
70 unique and formular name/description -> name code.
71
72 * tools/formed/formed/plugins/names,
73 tools/formed/formed/plugins/names/__init__.py,
74 tools/formed/formed/plugins/names/filter.py: Added. Contains
75 the make unique and formular name/description -> name code
76 in form of filters.
77
78 * tools/formed/test-data/simple.xml: Modified to be a better
79 test for the formular name/description -> name filter.
80
81 2007-08-18 Sascha L. Teichmann <[email protected]>
82
83 * tools/formed/formed.py, tools/formed/formed/main.py: First
84 command line argument is interpreted as filename of document
85 to be loaded at program startup.
86
87 2007-08-17 Frank Koormann <[email protected]>
88
89 * contrib/convert-formedtree2html.xsl:
90 Heading level depending on depth of group node.
91 In case of radio/choice/check only list of options.
92
93 2007-08-17 Torsten Irlaender <[email protected]>
94
95 * contrib/convert-formedtree2html.xsl: Output is now generated with
96 HTML doc-string and charset information in the meta-header.
97
98 2007-08-17 Torsten Irlaender <[email protected]>
99
100 * contrib/convert-formedtree2html.xsl: Added small script for
101 exporting the formed tree to html
102
103 2007-08-17 Torsten Irlaender <[email protected]>
104
105 * tools/formed/model/nodecomponents.py: Added function to rename
106 the set the name of the node to the formularname. The formularname
107 gets shorten to <=64 by removing vowels and is stored lowercase.
108 If the name is not unique and additional id value is appended.
109
110 * tools/formed/formed/model/data.py: Overwritten renaming-function for
111 bool-leafs
112
113 * tools/formed/formed/main.py: Added menuitem for renaming the names
114 of the element
115
116 2007-08-16 Sascha L. Teichmann <[email protected]>
117
118 * tools/formed/formed/main.py: Swaped order of
119 'Make names unique' and 'Selected mode...' in Extra
120 menu and put a separator between them.
121
122 2007-08-15 Sascha L. Teichmann <[email protected]>
123
124 * tools/formed/formed/model/data.py: SwitchNodes can add
125 their modes to a given set now.
126
127 * tools/formed/formed/plugins/plugin.py: Simplified
128 the plug-in interface. Only the reference to the
129 global configuration is passed at setup time.
130
131 * tools/formed/formed/plugins/web/plugin.py: Adjusted
132 to new plug-in setup. The traveral mode is now taken
133 from the global configuration each time a rendering
134 is triggered. The FORMED parameter is now named
135 'doc.mode' instead of 'web.mode'. The parameter
136 is not needed any more because it can be configured
137 at runtime.
138
139 * tools/formed/formed/main.py: Adjusted to new plugin
140 setup. Added a new menu item Extra->Select Mode...
141 to select the traversal mode. It is stored in the
142 global config.
143
144 * tools/formed/formed/config.py: Simplified. Only uses
145 one env dictionary to store global configuration parameters.
146
147 * tools/formed/formed/ui/controls.py: Add a control to
148 select one item from a list of given strings.
149
150 2007-08-15 Sascha L. Teichmann <[email protected]>
151
152 * tools/formed/formed/plugins/web/plugin.py,
153 tools/formed/formed/plugins/web/renderer.py: Added parameter
154 print out in web plugin.
155
156 2007-08-15 Torsten Irlaender <[email protected]>
157
158 * contrib/convert-formedtree2csv.xsl: Added small script for
159 exporting the formed tree to csv
160
161 2007-08-14 Sascha L. Teichmann <[email protected]>
162
163 * tools/formed/formed/model/data.py,
164 tools/formed/formed/model/nodecomponents.py,
165 tools/formed/formed/io/document.py: Added a 'switch' node.
166
167 * tools/formed/formed/plugins/web/renderer.py:Render the
168 new 'switch' node.
169
170 * tools/formed/formed/plugins/web/plugin.py,
171 tools/formed/formed/config.py: Added a 'web.mode' parameter
172 to FORMED environment variable.
173 e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'.
174 Defaults to 'default'.
175
176 * tools/formed/test-data/simple.xml: Added test for switch.
177
178 2007-08-14 Sascha L. Teichmann <[email protected]>
179
180 * tools/formed/formed/model/nodecomponents.py: Added an
181 attribute 'formularname' to base class of node components.
182
183 2007-08-13 Sascha L. Teichmann <[email protected]>
184
185 * tools/formed/formed/io/document.py,
186 tools/formed/formed/model/data.py,
187 tools/formed/formed/model/nodecomponents.py: Added an item
188 to model external item lists.
189
190 * tools/formed/formed/plugins/web/renderer.py: Render new item
191 list.
192 * tools/formed/formed/main.py: Added a forgotten 'self.'
193
194 * contrib/extract-xfa-items.sh: Modified to generate
195 documents to be loadable from new item lists
196
197 2007-08-13 Sascha L. Teichmann <[email protected]>
198
199 * tools/formed/formed/main.py: Fixed typo
200
201 2007-08-13 Sascha L. Teichmann <[email protected]>
202
203 * contrib/extract-xfa-items.sh: New. Can be used to extract longer
204 choice item lists for a given field from XFA files. e.g. with
205 './contrib/extract-xfa-items.sh Muttersprache alles.xml'
206
207 2007-08-12 Sascha L. Teichmann <[email protected]>
208
209 * tools/formed/formed/model/data.py,
210 tools/formed/formed/plugins/web/renderer.py,
211 tools/formed/formed/io/document.py: Changed the structure
212 of choice constructs. The idea to hold the different items
213 of a particular choice in a semicolon separated list was bad.
214 Now choices are groups and the option items are modelled as
215 embedded bools. (mainly Torsten Irländer's idea).
216
217 WARNING: this makes old document files containing choices incompatible!!!
218 Use the following XSLT to reestablish compatibility.
219
220 * contrib/itemize-choices.xsl: New converts old to new structure.
221 Needs exslt.org's string extensions (which xsltproc includes)
222
223 * tools/formed/test-data/simple.xml: Ajusted to new structure
224
225 * tools/formed/formed/plugins/web/plugin.py: remove debug output
226
227 * tools/formed/formed/model/nodecomponents.py: fixed a small bug in
228 node finding code. It now uses the walk() generator, too.
229
230 2007-08-12 Sascha L. Teichmann <[email protected]>
231
232 * tools/formed/formed/main.py: Added a clone item on the toolbar which
233 copies the currently selected item and appends it after the selection.
234
235 * tools/formed/formed/model/nodecomponents.py: Added code to clone parts
236 of the tree.
237
238 * tools/formed/formed/ui/controls.py: Added a getSelected method.
239
240 * tools/formed/formed/model/misc.py: Fixed a programming bug.
241 forgot a 'self.' prefix.
242
243 2007-08-12 Sascha L. Teichmann <[email protected]>
244
245 * tools/formed/formed/model/nodecomponents.py: Added a method to append
246 a second document to the current.
247
248 * tools/formed/formed/main.py: Added an 'Import' file menu item to load
249 a second document to be appended to the current.
250
251 2007-08-12 Sascha L. Teichmann <[email protected]>
252
253 * tools/formed/formed/main.py: Added a 'New' item in file menu which creates
254 a new document when triggered.
255
256 2007-08-12 Sascha L. Teichmann <[email protected]>
257
258 * tools/formed/formed/model/nodecomponents.py: Added walk generator over all
259 items in the document tree. Added a method to eliminated duplicated names
260 in document tree.
261
262 * tools/formed/formed/model/misc.py: Added update mechanism for id generator
263 after names collisions are eliminated.
264
265 * tools/formed/formed/main.py: Added an 'Extra' menu with item
266 'Make names unique'.
267
268 2007-08-11 Sascha L. Teichmann <[email protected]>
269
270 * tools/formed/formed/model/data.py,
271 tools/formed/formed/plugins/web/renderer.py: Removed support
272 for 'text' attributes in bool items. They were never really
273 used and the 'description' attributes fulfill the same
274 purpose.
275
276 * contrib/remove-bool-text.xsl: Transform to remove the
277 'text' attributes from bool items. Apply with:
278 'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml'
279
280 * tools/formed/test-data/simple.xml: Removed 'text' attributes
281 from bool items.
282
283 2007-08-11 Sascha L. Teichmann <[email protected]>
284
285 * contrib/convert-choices.xsl: Simpified.
286
287 2007-08-11 Sascha L. Teichmann <[email protected]>
288
289 * tools/formed/formed/model/data.py: Removed 'options' attribute
290 from ChoiceLeaf. Use 'value' instead, please!
291
292 * tools/formed/formed/plugins/web/renderer.py: use 'value' attribute
293 instead of 'options' to render choices.
294
295 * contrib/convert-choices.xsl: Added to convert document files
296 which use the choice 'option' attribute to usage of 'value'.
297 Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml'
298
299 2007-08-10 Sascha L. Teichmann <[email protected]>
300
301 * tools/formed/formed/plugins/web/renderer.py: radio buttons
302 are selected by 'checked' and not by 'selected'. Fixed.
303
304 2007-08-10 Sascha L. Teichmann <[email protected]>
305
306 * tools/formed/formed/model/data.py: ChoiceLeafs are now
307 initialized with size = 1.
308
309 2007-08-10 Sascha L. Teichmann <[email protected]>
310
311 * tools/formed/formed/model/data.py: TextLeafs are now
312 initialized with size = 40, maxlength = 60
313
314 2007-08-10 Sascha L. Teichmann <[email protected]>
315
316 * tools/formed/formed/plugins/web/renderer.py: Fixed: choices
317 are renderered with description now.
318
319 2007-08-10 Sascha L. Teichmann <[email protected]>
320
321 * tools/formed/formed/plugins/web/renderer.py: Added rendering
322 for date items. Added missing ids for texts and textareas.
323
324 2007-08-10 Sascha L. Teichmann <[email protected]>
325
326 * tools/formed/formed/config.py: Evaluate the environment
327 variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2'
328
329 * tools/formed/formed/plugins/plugin.py: Give a reference
330 to the config at setup time.
331
332 * tools/formed/formed/plugins/web/plugin.py: To determine
333 the port look at FORMED dictionary first. Key is 'web.port'.
334 e.g. FORMED='web.port:8888'
335
336 * tools/formed/formed/main.py: Call the plugin setup with
337 the reference to the config.
338
339 2007-08-10 Sascha L. Teichmann <[email protected]>
340
341 * tools/formed/test-data/simple.xml: removed 'text' attributes from
342 info tags. Use the 'value' attributes for same purpose now, please!
343
344 * tools/formed/formed/model/data.py: removed text attributes from
345 InfoLeaf.
346
347 * tools/formed/formed/plugins/web/renderer.py: Rendering of info
348 now uses the 'value' instead of the 'text' attributes.
349
350 2007-08-09 Sascha L. Teichmann <[email protected]>
351
352 * tools/formed/formed/model/data.py: next/prevPage() are
353 methods of PageNode now.
354
355 * tools/formed/formed/model/nodecomponents.py: findByClassAndName()
356 is method of Document now.
357
358 * tools/formed/formed/plugins/web/plugin.py: Factored out
359 the HTML renderer.
360
361 * tools/formed/formed/plugins/web/renderer.py: New: contains
362 the HTML renderer now.
363
364 * tools/formed/test-data/simple.xml: Fixed typo
365
366 2007-08-09 Sascha L. Teichmann <[email protected]>
367
368 * tools/formed/formed/plugins/web/plugin.py: Fixed a bug
369 in calculation of width of bounded int fields.
370
371 2007-08-09 Sascha L. Teichmann <[email protected]>
372
373 * tools/formed/test-data/simple.xml: Make demo Int fancier.
374
375 * tools/formed/formed/model/data.py: Added attributes to IntLeaf
376
377 * tools/formed/formed/plugins/web/plugin.py: Added rendering for
378 Ints
379
380 2007-08-09 Sascha L. Teichmann <[email protected]>
381
382 * tools/formed/test-data/simple.xml: Added demo textarea
383
384 * tools/formed/formed/model/data.py: Added TextAreaLeaf
385
386 * tools/formed/formed/io/document.py: register builder
387 for loading of textareas
388
389 * tools/formed/formed/plugins/web/plugin.py: Added rendering
390 for textareas.
391
392 2007-08-09 Sascha L. Teichmann <[email protected]>
393
394 * tools/formed/test-data/simple.xml: Make demo choice fancier.
395
396 * tools/formed/formed/model/data.py: Added attributes for texts
397
398 * tools/formed/formed/plugins/web/plugin.py: Added rendering
399 for texts
400
401 2007-08-09 Sascha L. Teichmann <[email protected]>
402
403 * tools/formed/test-data/simple.xml: Make demo choice fancier.
404
405 * tools/formed/formed/model/data.py: Added attributes for choices.
406
407 * tools/formed/formed/plugins/web/plugin.py: Added rendering
408 for choices
409
410 2007-08-09 Sascha L. Teichmann <[email protected]>
411
412 * tools/formed/formed/model/data.py,
413 tools/formed/formed/model/nodecomponents.py: Added new
414 attributes.
415
416 * tools/formed/formed/plugins/web/plugin.py: Added rendering
417 for checkboxes and radio buttons.
418
419 2007-08-08 Sascha L. Teichmann <[email protected]>
420
421 * tools/formed/test-data/simple.xml: Added some descriptions
422
423 * tools/formed/formed/model/data.py: set attributes in constructors
424 directly.
425
426 * tools/formed/formed/model/nodecomponents.py: Added description
427 attribute in the NodeComponent base class.
428
429 * tools/formed/formed/plugins/web/plugin.py: Render description
430 as legend in fieldset for GroupNodes.
431
432 2007-08-08 Sascha L. Teichmann <[email protected]>
433
434 * tools/formed/formed/plugins/web/plugin.py: make UTF-8
435 output work.
436
437 2007-08-08 Sascha L. Teichmann <[email protected]>
438
439 * tools/formed/formed/model/data.py: Added get/setText() method
440
441 * tools/formed/formed/plugins/web/plugin.py: Added a first
442 version of a recursive HTML renderer based on the document
443 tree.
444
445 2007-08-08 Sascha L. Teichmann <[email protected]>
446
447 * tools/formed/formed/plugins/*: New: plug-in infrastructure.
448
449 * tools/formed/formed/plugins/web/*: new: A simple web server
450 which is intended to serve pages of the current formular.
451
452 * tools/formed/formed/main.py: start the plug-ins
453
454 * tools/formed/formed/config.py: configuration class. Used
455 for the plug-ins.
456
457 2007-08-08 Sascha L. Teichmann <[email protected]>
458
459 * tools/formed/formed/model/nodecomponents.py: Fixed broadcasting
460 issue with zero length tree paths.
461
462 * tools/formed/formed/model/misc.py: New: contains a class
463 for generating unique ids.
464
465 * tools/formed/formed/main.py: Added an instance of an
466 unique id generator for naming of new made tree items.
467
468 2007-08-07 Sascha L. Teichmann <[email protected]>
469
470 * tools/formed/formed/main.py: Added event route document ->
471 attribute table to get informed when selected item is delete
472 or an attribute is changed from the outside.
473
474 * tools/formed/formed/ui/controls.py: Fixed. In older versions of
475 wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead
476 of 3 argument. Uses icons+tooltips for tree navigation now.
477
478 2007-08-07 Sascha L. Teichmann <[email protected]>
479
480 * tools/formed/formed/model/nodecomponents.py: Set name
481 attribute in base class.
482
483 * tools/formed/formed/io/document.py: Added a table
484 names -> classes.
485
486 * tools/formed/formed/main.py: Added a toolbar. Added code
487 to create and delete tree items.
488
489 * tools/formed/formed/ui/controls.py: Added code to
490 insert and delete new tree items.
491
492 2007-08-07 Sascha L. Teichmann <[email protected]>
493
494 * tools/formed/formed/model/nodecomponents.py: Fixed event
495 broadcasting for attribute changes.
496
497 * tools/formed/formed/ui/controls.py: Add a list/table control to
498 edit the attributes of a selected item.
499
500 * tools/formed/formed/main.py: Added code to bind the new
501 list/table control.
502
503 2007-08-06 Sascha L. Teichmann <[email protected]>
504
505 * tools/formed/formed/main.py: Added event routes to move
506 items in and out of groups.
507
508 * tools/formed/formed/ui/controls.py: Added code to move
509 items in and out of groups.
510
511 2007-08-06 Sascha L. Teichmann <[email protected]>
512
513 * tools/formed/formed/model/nodecomponents.py: Fixed path
514 calculation to root and event broadcasting
515
516 * tools/formed/formed/io/factories.py: Adjust to new
517 event broadcasting.
518
519 * tools/formed/formed/main.py: Added code to move items
520 up and down the document tree.
521
522 * tools/formed/formed/ui/controls.py: Establish sort order
523 by indices of children in parent instead of alphanum.
524 Code to move items up and down the document tree.
525
526 * tools/formed/formed/io/document.py: Added missing imports.
527
528 2007-08-06 Sascha L. Teichmann <[email protected]>
529
530 * tools/formed/formed.py: Added to avoid problems with
531 ambiguous absolute module names. Thanks to Bernhard Herzog
532
533 * tools/formed/formed.sh: Starts formed.py now
534
535 * tools/formed/formed/main.py,
536 tools/formed/formed/ui/controls.py: Added control to
537 move items around in tree. Has no effect by now.
538
539 2007-08-05 Sascha L. Teichmann <[email protected]>
540
541 * tools/formed/formed/io/parser.py: Adjusted style
542
543 * tools/formed/formed/io/document.py,
544 tools/formed/formed/io/factories.py: Simplified factory
545 model for XML loading.
546
547 2007-08-05 Sascha L. Teichmann <[email protected]>
548
549 * ChangeLog: started ChangeLog
550
551 * tools/formed/*: initial check-in of the Formular Editor.
552 Not working yet. Only can load, view and store formular XML files.
553 Start it with 'tools/formed/formed.sh'.

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26