/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26