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