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