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