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