/[formed]/trunk/ChangeLog
ViewVC logotype

Contents of /trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 58 - (show annotations)
Mon Aug 20 13:03:22 2007 UTC (17 years, 6 months ago) by torsten
File size: 18256 byte(s)
Fixed syntax in selection field generation.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26