1 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/plugins/web/renderer.py: Added Formdata interface. |
4 |
|
* tools/formed/model/data.py: Implements Formadata interface to |
5 |
|
textfields. Fieldset generated depends now on the "invisible" |
6 |
|
attribute of the groupnode. Field-label generation slightly changed. |
7 |
|
Added error indication to textfields |
8 |
|
|
9 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
10 |
|
|
11 |
|
* tools/formed/formed/model/data.py, |
12 |
|
tools/formed/formed/io/document.py: Removed support |
13 |
|
of logical groups. |
14 |
|
|
15 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
16 |
|
|
17 |
|
* tools/formed/formed/io/document.py: Avoid saving empty |
18 |
|
attributes. |
19 |
|
|
20 |
|
* tools/formed/test-data/simple.xml: Applied. |
21 |
|
|
22 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
23 |
|
|
24 |
|
* tools/formed/formed/model/data.py: Added 'repeat' and |
25 |
|
'invisible' attributes to group. TODO: remove logical group. |
26 |
|
|
27 |
|
2007-08-27 Torsten Irlaender <[email protected]> |
28 |
|
|
29 |
|
* tools/formed/plugins/web/plugin.py, |
30 |
|
tools/formed/plugins/web/renderer.py: Started to include stylesheet |
31 |
|
depending tags in the html generation. |
32 |
|
|
33 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
34 |
|
|
35 |
|
* tools/formed/formed/model/data.py, |
36 |
|
tools/formed/formed/io/document.py: Added a logical group. |
37 |
|
It has an attribute 'repeat' to indicate that it might |
38 |
|
be worthy an external table in DB schema. |
39 |
|
|
40 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
41 |
|
|
42 |
|
* tools/formed/formed/plugins/web/plugin.py: Support |
43 |
|
serving of static content. |
44 |
|
|
45 |
|
* tools/formed/formed/plugins/web/server.py: Removed |
46 |
|
old send code. |
47 |
|
|
48 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
49 |
|
|
50 |
|
* tools/formed/formed/plugins/web/plugin.py: Use new |
51 |
|
Response object. Fix typo. |
52 |
|
|
53 |
|
* tools/formed/formed/plugins/web/server.py: support |
54 |
|
response object to serve different MIME types. |
55 |
|
|
56 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
57 |
|
|
58 |
|
* tools/formed/formed/plugins/web/plugin.py: Add web.path |
59 |
|
to FORMED environment variable to specify the |
60 |
|
root of the static content. |
61 |
|
|
62 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
63 |
|
|
64 |
|
* tools/formed/formed/model/data.py, |
65 |
|
tools/formed/formed/model/nodecomponents.py: Fixed mode issues. |
66 |
|
|
67 |
|
* tools/formed/formed/plugins/web/www, |
68 |
|
tools/formed/formed/plugins/web/www/main.tmpl: New. Contains |
69 |
|
a template for the HTML output. |
70 |
|
|
71 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixes several smaller |
72 |
|
mode issues. Introduces CSS support. Simplified the action |
73 |
|
handling. |
74 |
|
|
75 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed the |
76 |
|
nagivation code. |
77 |
|
|
78 |
|
* tools/formed/formed/plugins/web/server.py: Added missing import. |
79 |
|
|
80 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
81 |
|
|
82 |
|
* tools/formed/formed/model/data.py: Added missing broadcast |
83 |
|
parameter to setAttribute() of RuleLeaf. |
84 |
|
|
85 |
|
* tools/formed/formed/plugins/web/plugin.py: Factorize |
86 |
|
HTTP server code out to separate module. |
87 |
|
|
88 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed |
89 |
|
needless -1 from pop() |
90 |
|
|
91 |
|
* tools/formed/formed/plugins/web/server.py: New. Contains |
92 |
|
the HTTP server code now. |
93 |
|
|
94 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
95 |
|
|
96 |
|
* tools/formed/test-data/simple.xml: Modified to contain a rule. |
97 |
|
|
98 |
|
* tools/formed/formed/model/expr.py: Added. A simple RPN |
99 |
|
expression evaluator. To avoid the problem of eval()ing |
100 |
|
arbitrary python expressions I've decided to use a very |
101 |
|
basic and limited stack machine to support rule checking. |
102 |
|
|
103 |
|
* tools/formed/formed/model/data.py: Added a RuleLeaf. |
104 |
|
|
105 |
|
* tools/formed/formed/io/document.py: Added factories for rules. |
106 |
|
|
107 |
|
* tools/formed/formed/model/nodecomponents.py: Add a method |
108 |
|
to find all items of a given type in document for a given |
109 |
|
mode. Usefull to find all rules in the tree. |
110 |
|
|
111 |
|
* tools/formed/formed/ui/controls.py: Added a listener mechanism |
112 |
|
to attribute table to report exceptions when setting a value |
113 |
|
from GUI. Useful to report compilation errors when setting |
114 |
|
expr of rule leafs. |
115 |
|
|
116 |
|
* tools/formed/formed/main.py: Added a method to track exceptions |
117 |
|
from the attribute table and pop up dialogs if they occur. |
118 |
|
Added a counter of rule modifications in tree. Useful if you |
119 |
|
want build cached data structures like rule sets and you want |
120 |
|
to know if they are still valid. |
121 |
|
|
122 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
123 |
|
|
124 |
|
* tools/formed/formed/plugins/export/sql.py: Fixed CHECK-constraint |
125 |
|
for checkbox values. (Syntax error). |
126 |
|
|
127 |
|
* tools/formed/formed/plugins/names/filter.py: Fixes in formularname |
128 |
|
generation |
129 |
|
|
130 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
131 |
|
|
132 |
|
* tools/formed/formed/plugins/names/filter.py: Separated Class for |
133 |
|
making the formularnames more database friendly. Added some more |
134 |
|
checks. |
135 |
|
* tools/formed/formed/plugins/export/sql.py: Make use of the fresh |
136 |
|
separated class, and some fixes in sql generation. |
137 |
|
|
138 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
139 |
|
|
140 |
|
* tools/formed/formed/plugins/export/html.py: Print lengths |
141 |
|
of external choice list. |
142 |
|
|
143 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
144 |
|
|
145 |
|
* tools/formed/formed/main.py: Little workaround for |
146 |
|
mode selection if someone adds an removes a mode. |
147 |
|
|
148 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
149 |
|
|
150 |
|
* tools/formed/test-data/simple.xml: Better test case for |
151 |
|
mode depended leaf items. |
152 |
|
|
153 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
154 |
|
to calculate the effective mode of an item. |
155 |
|
|
156 |
|
* tools/formed/formed/plugins/export/html.py: Use effective |
157 |
|
mode. TODO: the 'all' modus return false results sometimes. |
158 |
|
Cause: The modes are only cumulated over time. Removal is |
159 |
|
not done. |
160 |
|
|
161 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
162 |
|
|
163 |
|
* tools/formed/formed/plugins/export/html.py: Dump the items |
164 |
|
of radio groups and choices too. |
165 |
|
|
166 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
167 |
|
|
168 |
|
* tools/formed/formed/plugins/names/filter.py: Modified the renaming |
169 |
|
by formular names to make the naming more database friendly. |
170 |
|
Now only alphanumeric and underscore chars is allowed. |
171 |
|
|
172 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
173 |
|
|
174 |
|
* tools/formed/formed/plugins/export/html.py: Tweaked |
175 |
|
HTML table exporter a bit to be on par with the XSLT |
176 |
|
script. TODO: Dump items in radio and choice groups. |
177 |
|
|
178 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
179 |
|
|
180 |
|
* tools/formed/formed/plugins/names/filter.py: Removed |
181 |
|
HTML and SQL exporters. |
182 |
|
|
183 |
|
* tools/formed/formed/plugins/export, |
184 |
|
tools/formed/formed/plugins/export/__init__.py, |
185 |
|
tools/formed/formed/plugins/export/sql.py, |
186 |
|
tools/formed/formed/plugins/export/html.py: New: Contain |
187 |
|
the HTML and the SQL exporters now. |
188 |
|
|
189 |
|
* tools/formed/formed/config.py: Use exporters from different |
190 |
|
package now. |
191 |
|
|
192 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
193 |
|
|
194 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
195 |
|
pseudo SQL export filters. TODO: Move HTML and SQL filter |
196 |
|
in a new file (formed/plugins/export/htmlexport.py and |
197 |
|
sqlexport.py?) |
198 |
|
|
199 |
|
* tools/formed/formed/config.py: Install the new SQL filter. |
200 |
|
|
201 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
202 |
|
|
203 |
|
* tools/formed/formed/model/nodecomponents.py: Added a depth() |
204 |
|
method to determine the depth of particular tree item. |
205 |
|
|
206 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
207 |
|
HTML export filters. TODO: needs more work. |
208 |
|
|
209 |
|
* tools/formed/formed/config.py: Install the new HTML filter. |
210 |
|
|
211 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
212 |
|
|
213 |
|
* contrib/extract-xfa-fields_and_options.xsl: Added small xsl script |
214 |
|
to extract fields and options in the XFA Data in teh PDF. This |
215 |
|
script might me handy to indicate changes between the different |
216 |
|
formular versions. |
217 |
|
|
218 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
219 |
|
|
220 |
|
* tools/formed/formed/main.py: Add an 'all' mode to |
221 |
|
select all modes. ;-) |
222 |
|
|
223 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
224 |
|
|
225 |
|
* tools/formed/test-data/simple.xml, |
226 |
|
tools/formed/formed/model/data.py, |
227 |
|
tools/formed/formed/plugins/web/plugin.py, |
228 |
|
tools/formed/formed/plugins/web/renderer.py, |
229 |
|
tools/formed/formed/io/document.py, |
230 |
|
tools/formed/formed/main.py: Removed support for switch nodes. |
231 |
|
BEWARE: This breaks compatibility with older documents! |
232 |
|
|
233 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
234 |
|
|
235 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the |
236 |
|
getSelectedMode() from main now. |
237 |
|
|
238 |
|
* tools/formed/formed/main.py: selected mode is now hold |
239 |
|
in main. |
240 |
|
|
241 |
|
* tools/formed/formed/config.py: removed selected mode from |
242 |
|
env configuration. |
243 |
|
|
244 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
245 |
|
|
246 |
|
* tools/formed/formed/ui/controls.py: Attributes in GUI attribute |
247 |
|
table are now alphabetically sorted. |
248 |
|
|
249 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
250 |
|
|
251 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to |
252 |
|
establish the new 'modes' recursively. |
253 |
|
|
254 |
|
* tools/formed/formed/plugins/plugin.py: Pass main instead |
255 |
|
of cfg on plug-in start-up. |
256 |
|
|
257 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new |
258 |
|
'modes' attribute for rendering. |
259 |
|
|
260 |
|
* tools/formed/formed/plugins/web/renderer.py: Use decorators |
261 |
|
to check the new modes. |
262 |
|
|
263 |
|
* tools/formed/formed/main.py: Adjusted to new infrastructure. |
264 |
|
|
265 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
266 |
|
|
267 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
268 |
|
attribute 'modes' to NodeComponents. |
269 |
|
|
270 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
271 |
|
|
272 |
|
* tools/formed/formed/model/data.py: Small cosmetic cleanups |
273 |
|
|
274 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
275 |
|
|
276 |
|
* tools/formed/formed/plugins/web/renderer.py: Another fix |
277 |
|
for the hidden field. Argh! |
278 |
|
|
279 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
280 |
|
|
281 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed double |
282 |
|
generation of hidden page field. |
283 |
|
|
284 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
285 |
|
|
286 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
287 |
|
checks for radio groups. |
288 |
|
|
289 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
290 |
|
|
291 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
292 |
|
checks for choices. |
293 |
|
|
294 |
|
2007-08-21 Frank Koormann <[email protected]> |
295 |
|
|
296 |
|
* contrib/convert-formedtree2html.xsl: Display switch nodes as |
297 |
|
alternatives. |
298 |
|
|
299 |
|
2007-08-21 Frank Koormann <[email protected]> |
300 |
|
|
301 |
|
* contrib/convert-formedtree2html.xsl: |
302 |
|
Replace technical types with readable descriptions |
303 |
|
|
304 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
305 |
|
|
306 |
|
* tools/formed/formed/plugins/web/plugin.py: Fix a few smaller |
307 |
|
issues. 'action' looks for all widgets on a page now, goes |
308 |
|
through all passed parameters, tries to match them with the |
309 |
|
widgets of the page and put them into the semantic box. |
310 |
|
Afterwards a list of untouched page parameters are left |
311 |
|
which will be deleted from the semantic box. |
312 |
|
|
313 |
|
* tools/formed/formed/plugins/web/semantic.py: Simplified. |
314 |
|
The NodeComponent is passed as an argument now. |
315 |
|
|
316 |
|
* tools/formed/formed/plugins/web/renderer.py: Generate a |
317 |
|
hidden field to store the name of the page. |
318 |
|
|
319 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
320 |
|
|
321 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed an encoding |
322 |
|
issue with incoming UTF-8 data. |
323 |
|
|
324 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
325 |
|
|
326 |
|
* tools/formed/test-data/simple.xml: Improve test for widgets |
327 |
|
in switches. |
328 |
|
|
329 |
|
* tools/formed/formed/model/data.py: Added a method to find all |
330 |
|
widgets in a given page. Fixed a bug when walking in switch |
331 |
|
with a given mode. |
332 |
|
|
333 |
|
* tools/formed/formed/plugins/web/plugin.py: Simple test for |
334 |
|
listing all widgets in page. |
335 |
|
|
336 |
|
2007-08-21 Torsten Irlaender <[email protected]> |
337 |
|
|
338 |
|
* tools/formed/formed/plugins/names/filter.py: Fixed file-encoding to |
339 |
|
latin-1 |
340 |
|
|
341 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
342 |
|
|
343 |
|
* tools/formed/formed/model/data.py: Added mode parameter to |
344 |
|
walk. |
345 |
|
|
346 |
|
* tools/formed/formed/model/nodecomponents.py: SwitchNode overwrites |
347 |
|
walk() with usage of the new mode parameter. Added a method to |
348 |
|
give children in a given mode. |
349 |
|
|
350 |
|
* tools/formed/formed/plugins/web/renderer.py: Simplified to use |
351 |
|
new Switch.childrenInMode() method. |
352 |
|
|
353 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
354 |
|
|
355 |
|
* tools/formed/formed/plugins/web/semantic.py: Add checks for |
356 |
|
texts and text areas. |
357 |
|
|
358 |
|
* tools/formed/formed/plugins/web/renderer.py: Set accept-charset |
359 |
|
to UTF-8 in generated form. |
360 |
|
|
361 |
|
2007-08-20 Sascha L. Teichmann <[email protected]> |
362 |
|
|
363 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
364 |
|
tests for dates. |
365 |
|
|
366 |
|
2007-08-20 Sascha L. Teichmann <[email protected]> |
367 |
|
|
368 |
|
* tools/formed/test-data/simple.xml: Tweak a bit for integer |
369 |
|
range test. |
370 |
|
|
371 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
372 |
|
to find a tree item for a given name. |
373 |
|
|
374 |
|
* tools/formed/formed/plugins/web/semantic.py: New: Box for |
375 |
|
semantic checking. Has check for integers. |
376 |
|
|
377 |
|
* tools/formed/formed/plugins/web/plugin.py: Use semantic |
378 |
|
check. |
379 |
|
|
380 |
|
2007-08-20 Torsten Irlaender <[email protected]> |
381 |
|
|
382 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in |
383 |
|
selection-field generation (Removed quote) |
384 |
|
|
385 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
386 |
|
|
387 |
|
* tools/formed/formed/plugins/web/plugin.py, |
388 |
|
tools/formed/formed/plugins/web/renderer.py: Added a |
389 |
|
simple cookie based session management to the HTML |
390 |
|
renderer. This submit parameters are stored in the |
391 |
|
session now. This will ease testing the constraint |
392 |
|
tests which need to be written soon. |
393 |
|
|
394 |
|
BEWARE: The session management is _not_ made for production! |
395 |
|
Denial of service attacks are too easy, and the |
396 |
|
cryptographical strength of the session id is doubtful. |
397 |
|
|
398 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
399 |
|
|
400 |
|
* tools/formed/formed/plugins/web/renderer.py: Escaping text |
401 |
|
coming from the document tree now when inserting it into the |
402 |
|
HTML output. |
403 |
|
|
404 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
405 |
|
|
406 |
|
* tools/formed/formed/plugins/plugin.py: Added a new kind |
407 |
|
of plug-in: Filter. They have a short and a long description |
408 |
|
and can be hooked automatically into the new 'Filters' |
409 |
|
sub menu under 'Extra'. They got called when the user |
410 |
|
selects their respective menu item. |
411 |
|
|
412 |
|
* tools/formed/formed/config.py: Contains the list of |
413 |
|
installed filters. |
414 |
|
|
415 |
|
* tools/formed/formed/main.py: Builds the Extra->Filters |
416 |
|
sub menu during gui initialization. The hard wired code |
417 |
|
for make unique and formular name/description -> name |
418 |
|
is removed because they are implemented as filters now. |
419 |
|
|
420 |
|
* tools/formed/formed/model/nodecomponents.py, |
421 |
|
tools/formed/formed/model/data.py: Removed the make |
422 |
|
unique and formular name/description -> name code. |
423 |
|
|
424 |
|
* tools/formed/formed/plugins/names, |
425 |
|
tools/formed/formed/plugins/names/__init__.py, |
426 |
|
tools/formed/formed/plugins/names/filter.py: Added. Contains |
427 |
|
the make unique and formular name/description -> name code |
428 |
|
in form of filters. |
429 |
|
|
430 |
|
* tools/formed/test-data/simple.xml: Modified to be a better |
431 |
|
test for the formular name/description -> name filter. |
432 |
|
|
433 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
434 |
|
|
435 |
|
* tools/formed/formed.py, tools/formed/formed/main.py: First |
436 |
|
command line argument is interpreted as filename of document |
437 |
|
to be loaded at program startup. |
438 |
|
|
439 |
|
2007-08-17 Frank Koormann <[email protected]> |
440 |
|
|
441 |
|
* contrib/convert-formedtree2html.xsl: |
442 |
|
Heading level depending on depth of group node. |
443 |
|
In case of radio/choice/check only list of options. |
444 |
|
|
445 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
446 |
|
|
447 |
|
* contrib/convert-formedtree2html.xsl: Output is now generated with |
448 |
|
HTML doc-string and charset information in the meta-header. |
449 |
|
|
450 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
451 |
|
|
452 |
|
* contrib/convert-formedtree2html.xsl: Added small script for |
453 |
|
exporting the formed tree to html |
454 |
|
|
455 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
456 |
|
|
457 |
|
* tools/formed/model/nodecomponents.py: Added function to rename |
458 |
|
the set the name of the node to the formularname. The formularname |
459 |
|
gets shorten to <=64 by removing vowels and is stored lowercase. |
460 |
|
If the name is not unique and additional id value is appended. |
461 |
|
|
462 |
|
* tools/formed/formed/model/data.py: Overwritten renaming-function for |
463 |
|
bool-leafs |
464 |
|
|
465 |
|
* tools/formed/formed/main.py: Added menuitem for renaming the names |
466 |
|
of the element |
467 |
|
|
468 |
|
2007-08-16 Sascha L. Teichmann <[email protected]> |
469 |
|
|
470 |
|
* tools/formed/formed/main.py: Swaped order of |
471 |
|
'Make names unique' and 'Selected mode...' in Extra |
472 |
|
menu and put a separator between them. |
473 |
|
|
474 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
475 |
|
|
476 |
|
* tools/formed/formed/model/data.py: SwitchNodes can add |
477 |
|
their modes to a given set now. |
478 |
|
|
479 |
|
* tools/formed/formed/plugins/plugin.py: Simplified |
480 |
|
the plug-in interface. Only the reference to the |
481 |
|
global configuration is passed at setup time. |
482 |
|
|
483 |
|
* tools/formed/formed/plugins/web/plugin.py: Adjusted |
484 |
|
to new plug-in setup. The traveral mode is now taken |
485 |
|
from the global configuration each time a rendering |
486 |
|
is triggered. The FORMED parameter is now named |
487 |
|
'doc.mode' instead of 'web.mode'. The parameter |
488 |
|
is not needed any more because it can be configured |
489 |
|
at runtime. |
490 |
|
|
491 |
|
* tools/formed/formed/main.py: Adjusted to new plugin |
492 |
|
setup. Added a new menu item Extra->Select Mode... |
493 |
|
to select the traversal mode. It is stored in the |
494 |
|
global config. |
495 |
|
|
496 |
|
* tools/formed/formed/config.py: Simplified. Only uses |
497 |
|
one env dictionary to store global configuration parameters. |
498 |
|
|
499 |
|
* tools/formed/formed/ui/controls.py: Add a control to |
500 |
|
select one item from a list of given strings. |
501 |
|
|
502 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
503 |
|
|
504 |
|
* tools/formed/formed/plugins/web/plugin.py, |
505 |
|
tools/formed/formed/plugins/web/renderer.py: Added parameter |
506 |
|
print out in web plugin. |
507 |
|
|
508 |
|
2007-08-15 Torsten Irlaender <[email protected]> |
509 |
|
|
510 |
|
* contrib/convert-formedtree2csv.xsl: Added small script for |
511 |
|
exporting the formed tree to csv |
512 |
|
|
513 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
514 |
|
|
515 |
|
* tools/formed/formed/model/data.py, |
516 |
|
tools/formed/formed/model/nodecomponents.py, |
517 |
|
tools/formed/formed/io/document.py: Added a 'switch' node. |
518 |
|
|
519 |
|
* tools/formed/formed/plugins/web/renderer.py:Render the |
520 |
|
new 'switch' node. |
521 |
|
|
522 |
|
* tools/formed/formed/plugins/web/plugin.py, |
523 |
|
tools/formed/formed/config.py: Added a 'web.mode' parameter |
524 |
|
to FORMED environment variable. |
525 |
|
e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. |
526 |
|
Defaults to 'default'. |
527 |
|
|
528 |
|
* tools/formed/test-data/simple.xml: Added test for switch. |
529 |
|
|
530 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
531 |
|
|
532 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
533 |
|
attribute 'formularname' to base class of node components. |
534 |
|
|
535 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
536 |
|
|
537 |
|
* tools/formed/formed/io/document.py, |
538 |
|
tools/formed/formed/model/data.py, |
539 |
|
tools/formed/formed/model/nodecomponents.py: Added an item |
540 |
|
to model external item lists. |
541 |
|
|
542 |
|
* tools/formed/formed/plugins/web/renderer.py: Render new item |
543 |
|
list. |
544 |
|
* tools/formed/formed/main.py: Added a forgotten 'self.' |
545 |
|
|
546 |
|
* contrib/extract-xfa-items.sh: Modified to generate |
547 |
|
documents to be loadable from new item lists |
548 |
|
|
549 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
550 |
|
|
551 |
|
* tools/formed/formed/main.py: Fixed typo |
552 |
|
|
553 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
554 |
|
|
555 |
|
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
556 |
|
choice item lists for a given field from XFA files. e.g. with |
557 |
|
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
558 |
|
|
559 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
560 |
|
|
561 |
|
* tools/formed/formed/model/data.py, |
562 |
|
tools/formed/formed/plugins/web/renderer.py, |
563 |
|
tools/formed/formed/io/document.py: Changed the structure |
564 |
|
of choice constructs. The idea to hold the different items |
565 |
|
of a particular choice in a semicolon separated list was bad. |
566 |
|
Now choices are groups and the option items are modelled as |
567 |
|
embedded bools. (mainly Torsten Irländer's idea). |
568 |
|
|
569 |
|
WARNING: this makes old document files containing choices incompatible!!! |
570 |
|
Use the following XSLT to reestablish compatibility. |
571 |
|
|
572 |
|
* contrib/itemize-choices.xsl: New converts old to new structure. |
573 |
|
Needs exslt.org's string extensions (which xsltproc includes) |
574 |
|
|
575 |
|
* tools/formed/test-data/simple.xml: Ajusted to new structure |
576 |
|
|
577 |
|
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
578 |
|
|
579 |
|
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
580 |
|
node finding code. It now uses the walk() generator, too. |
581 |
|
|
582 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
583 |
|
|
584 |
|
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
585 |
|
copies the currently selected item and appends it after the selection. |
586 |
|
|
587 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
588 |
|
of the tree. |
589 |
|
|
590 |
|
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
591 |
|
|
592 |
|
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
593 |
|
forgot a 'self.' prefix. |
594 |
|
|
595 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
596 |
|
|
597 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
598 |
|
a second document to the current. |
599 |
|
|
600 |
|
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
601 |
|
a second document to be appended to the current. |
602 |
|
|
603 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
604 |
|
|
605 |
|
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
606 |
|
a new document when triggered. |
607 |
|
|
608 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
609 |
|
|
610 |
|
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
611 |
|
items in the document tree. Added a method to eliminated duplicated names |
612 |
|
in document tree. |
613 |
|
|
614 |
|
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
615 |
|
after names collisions are eliminated. |
616 |
|
|
617 |
|
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
618 |
|
'Make names unique'. |
619 |
|
|
620 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
621 |
|
|
622 |
|
* tools/formed/formed/model/data.py, |
623 |
|
tools/formed/formed/plugins/web/renderer.py: Removed support |
624 |
|
for 'text' attributes in bool items. They were never really |
625 |
|
used and the 'description' attributes fulfill the same |
626 |
|
purpose. |
627 |
|
|
628 |
|
* contrib/remove-bool-text.xsl: Transform to remove the |
629 |
|
'text' attributes from bool items. Apply with: |
630 |
|
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
631 |
|
|
632 |
|
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
633 |
|
from bool items. |
634 |
|
|
635 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
636 |
|
|
637 |
|
* contrib/convert-choices.xsl: Simpified. |
638 |
|
|
639 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
640 |
|
|
641 |
|
* tools/formed/formed/model/data.py: Removed 'options' attribute |
642 |
|
from ChoiceLeaf. Use 'value' instead, please! |
643 |
|
|
644 |
|
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
645 |
|
instead of 'options' to render choices. |
646 |
|
|
647 |
|
* contrib/convert-choices.xsl: Added to convert document files |
648 |
|
which use the choice 'option' attribute to usage of 'value'. |
649 |
|
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
650 |
|
|
651 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
652 |
|
|
653 |
|
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
654 |
|
are selected by 'checked' and not by 'selected'. Fixed. |
655 |
|
|
656 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
657 |
|
|
658 |
|
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
659 |
|
initialized with size = 1. |
660 |
|
|
661 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
662 |
|
|
663 |
|
* tools/formed/formed/model/data.py: TextLeafs are now |
664 |
|
initialized with size = 40, maxlength = 60 |
665 |
|
|
666 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
667 |
|
|
668 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
669 |
|
are renderered with description now. |
670 |
|
|
671 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
672 |
|
|
673 |
|
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
674 |
|
for date items. Added missing ids for texts and textareas. |
675 |
|
|
676 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
677 |
|
|
678 |
|
* tools/formed/formed/config.py: Evaluate the environment |
679 |
|
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
680 |
|
|
681 |
|
* tools/formed/formed/plugins/plugin.py: Give a reference |
682 |
|
to the config at setup time. |
683 |
|
|
684 |
|
* tools/formed/formed/plugins/web/plugin.py: To determine |
685 |
|
the port look at FORMED dictionary first. Key is 'web.port'. |
686 |
|
e.g. FORMED='web.port:8888' |
687 |
|
|
688 |
|
* tools/formed/formed/main.py: Call the plugin setup with |
689 |
|
the reference to the config. |
690 |
|
|
691 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
692 |
|
|
693 |
|
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
694 |
|
info tags. Use the 'value' attributes for same purpose now, please! |
695 |
|
|
696 |
|
* tools/formed/formed/model/data.py: removed text attributes from |
697 |
|
InfoLeaf. |
698 |
|
|
699 |
|
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
700 |
|
now uses the 'value' instead of the 'text' attributes. |
701 |
|
|
702 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
703 |
|
|
704 |
|
* tools/formed/formed/model/data.py: next/prevPage() are |
705 |
|
methods of PageNode now. |
706 |
|
|
707 |
|
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
708 |
|
is method of Document now. |
709 |
|
|
710 |
|
* tools/formed/formed/plugins/web/plugin.py: Factored out |
711 |
|
the HTML renderer. |
712 |
|
|
713 |
|
* tools/formed/formed/plugins/web/renderer.py: New: contains |
714 |
|
the HTML renderer now. |
715 |
|
|
716 |
|
* tools/formed/test-data/simple.xml: Fixed typo |
717 |
|
|
718 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
719 |
|
|
720 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
721 |
|
in calculation of width of bounded int fields. |
722 |
|
|
723 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
724 |
|
|
725 |
|
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
726 |
|
|
727 |
|
* tools/formed/formed/model/data.py: Added attributes to IntLeaf |
728 |
|
|
729 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering for |
730 |
|
Ints |
731 |
|
|
732 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
733 |
|
|
734 |
|
* tools/formed/test-data/simple.xml: Added demo textarea |
735 |
|
|
736 |
|
* tools/formed/formed/model/data.py: Added TextAreaLeaf |
737 |
|
|
738 |
|
* tools/formed/formed/io/document.py: register builder |
739 |
|
for loading of textareas |
740 |
|
|
741 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
742 |
|
for textareas. |
743 |
|
|
744 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
745 |
|
|
746 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
747 |
|
|
748 |
|
* tools/formed/formed/model/data.py: Added attributes for texts |
749 |
|
|
750 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
751 |
|
for texts |
752 |
|
|
753 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
754 |
|
|
755 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
756 |
|
|
757 |
|
* tools/formed/formed/model/data.py: Added attributes for choices. |
758 |
|
|
759 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
760 |
|
for choices |
761 |
|
|
762 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
763 |
|
|
764 |
|
* tools/formed/formed/model/data.py, |
765 |
|
tools/formed/formed/model/nodecomponents.py: Added new |
766 |
|
attributes. |
767 |
|
|
768 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
769 |
|
for checkboxes and radio buttons. |
770 |
|
|
771 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
772 |
|
|
773 |
|
* tools/formed/test-data/simple.xml: Added some descriptions |
774 |
|
|
775 |
|
* tools/formed/formed/model/data.py: set attributes in constructors |
776 |
|
directly. |
777 |
|
|
778 |
|
* tools/formed/formed/model/nodecomponents.py: Added description |
779 |
|
attribute in the NodeComponent base class. |
780 |
|
|
781 |
|
* tools/formed/formed/plugins/web/plugin.py: Render description |
782 |
|
as legend in fieldset for GroupNodes. |
783 |
|
|
784 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
785 |
|
|
786 |
|
* tools/formed/formed/plugins/web/plugin.py: make UTF-8 |
787 |
|
output work. |
788 |
|
|
789 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
790 |
|
|
791 |
|
* tools/formed/formed/model/data.py: Added get/setText() method |
792 |
|
|
793 |
|
* tools/formed/formed/plugins/web/plugin.py: Added a first |
794 |
|
version of a recursive HTML renderer based on the document |
795 |
|
tree. |
796 |
|
|
797 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
798 |
|
|
799 |
|
* tools/formed/formed/plugins/*: New: plug-in infrastructure. |
800 |
|
|
801 |
|
* tools/formed/formed/plugins/web/*: new: A simple web server |
802 |
|
which is intended to serve pages of the current formular. |
803 |
|
|
804 |
|
* tools/formed/formed/main.py: start the plug-ins |
805 |
|
|
806 |
|
* tools/formed/formed/config.py: configuration class. Used |
807 |
|
for the plug-ins. |
808 |
|
|
809 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
810 |
|
|
811 |
|
* tools/formed/formed/model/nodecomponents.py: Fixed broadcasting |
812 |
|
issue with zero length tree paths. |
813 |
|
|
814 |
|
* tools/formed/formed/model/misc.py: New: contains a class |
815 |
|
for generating unique ids. |
816 |
|
|
817 |
|
* tools/formed/formed/main.py: Added an instance of an |
818 |
|
unique id generator for naming of new made tree items. |
819 |
|
|
820 |
|
2007-08-07 Sascha L. Teichmann <[email protected]> |
821 |
|
|
822 |
|
* tools/formed/formed/main.py: Added event route document -> |
823 |
|
attribute table to get informed when selected item is delete |
824 |
|
or an attribute is changed from the outside. |
825 |
|
|
826 |
|
* tools/formed/formed/ui/controls.py: Fixed. In older versions of |
827 |
|
wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead |
828 |
|
of 3 argument. Uses icons+tooltips for tree navigation now. |
829 |
|
|
830 |
|
2007-08-07 Sascha L. Teichmann <[email protected]> |
831 |
|
|
832 |
|
* tools/formed/formed/model/nodecomponents.py: Set name |
833 |
|
attribute in base class. |
834 |
|
|
835 |
|
* tools/formed/formed/io/document.py: Added a table |
836 |
|
names -> classes. |
837 |
|
|
838 |
|
* tools/formed/formed/main.py: Added a toolbar. Added code |
839 |
|
to create and delete tree items. |
840 |
|
|
841 |
|
* tools/formed/formed/ui/controls.py: Added code to |
842 |
|
insert and delete new tree items. |
843 |
|
|
844 |
|
2007-08-07 Sascha L. Teichmann <[email protected]> |
845 |
|
|
846 |
|
* tools/formed/formed/model/nodecomponents.py: Fixed event |
847 |
|
broadcasting for attribute changes. |
848 |
|
|
849 |
|
* tools/formed/formed/ui/controls.py: Add a list/table control to |
850 |
|
edit the attributes of a selected item. |
851 |
|
|
852 |
|
* tools/formed/formed/main.py: Added code to bind the new |
853 |
|
list/table control. |
854 |
|
|
855 |
|
2007-08-06 Sascha L. Teichmann <[email protected]> |
856 |
|
|
857 |
|
* tools/formed/formed/main.py: Added event routes to move |
858 |
|
items in and out of groups. |
859 |
|
|
860 |
|
* tools/formed/formed/ui/controls.py: Added code to move |
861 |
|
items in and out of groups. |
862 |
|
|
863 |
|
2007-08-06 Sascha L. Teichmann <[email protected]> |
864 |
|
|
865 |
|
* tools/formed/formed/model/nodecomponents.py: Fixed path |
866 |
|
calculation to root and event broadcasting |
867 |
|
|
868 |
|
* tools/formed/formed/io/factories.py: Adjust to new |
869 |
|
event broadcasting. |
870 |
|
|
871 |
|
* tools/formed/formed/main.py: Added code to move items |
872 |
|
up and down the document tree. |
873 |
|
|
874 |
|
* tools/formed/formed/ui/controls.py: Establish sort order |
875 |
|
by indices of children in parent instead of alphanum. |
876 |
|
Code to move items up and down the document tree. |
877 |
|
|
878 |
|
* tools/formed/formed/io/document.py: Added missing imports. |
879 |
|
|
880 |
2007-08-06 Sascha L. Teichmann <[email protected]> |
2007-08-06 Sascha L. Teichmann <[email protected]> |
881 |
|
|
882 |
* tools/formed/formed.py: Added to avoid problems with |
* tools/formed/formed.py: Added to avoid problems with |