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