1 |
2007-08-17 Frank Koormann <[email protected]> |
2007-09-03 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/plugins/export/html.py |
4 |
|
(RecursiveExporter): Added annotation to export |
5 |
|
(fillRow()): Renamed old fillNine to this more generic name. |
6 |
|
|
7 |
|
|
8 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
9 |
|
|
10 |
|
* tools/formed/formed/plugins/web/renderer.py: Using the decorator |
11 |
|
from model.misc now. |
12 |
|
|
13 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
14 |
|
|
15 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
16 |
|
'annotation' attribute to node components. This is to |
17 |
|
enable FormEd document authors to add comments to groups |
18 |
|
and fields. |
19 |
|
|
20 |
|
2007-09-03 Frank Koormann <[email protected]> |
21 |
|
|
22 |
|
* tools/formed/formed/model/nodecomponents.py |
23 |
|
(NodeComponent.getParent): New method to get node components parent. |
24 |
|
|
25 |
|
* tools/formed/formed/plugins/export/html.py: Export Choice option |
26 |
|
as simple list instead of collection of bools. |
27 |
|
|
28 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
29 |
|
|
30 |
|
* tools/formed/formed/model/persistent.py: Interfaces to abstract |
31 |
|
from persistent storage details. |
32 |
|
|
33 |
|
* tools/formed/formed/model/memory.py: In core implementation |
34 |
|
of the persistent interfaces. |
35 |
|
|
36 |
|
* tools/formed/formed/main.py: Holds a memory data store now. |
37 |
|
|
38 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
39 |
|
|
40 |
|
* tools/formed/formed/plugins/export/sql.py, |
41 |
|
tools/formed/formed/plugins/export/html.py: Fixed constructor chains |
42 |
|
for FileDialogFilter sub classes. |
43 |
|
|
44 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
45 |
|
|
46 |
|
* tools/formed/formed/model/misc.py: Checking the mode in recursive |
47 |
|
tree traversals is a common task. To ease this a decorator function |
48 |
|
checkMode in union with sub classing ModeChecker can be used. |
49 |
|
To make it work simply subclass from ModeChecker and add the decorator |
50 |
|
to the methods that need mode tracking. Before you start the recursion |
51 |
|
call self.prepareDescent(). |
52 |
|
|
53 |
|
* tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme |
54 |
|
now which replace the old. TODO: Make the web renderer use the new scheme |
55 |
|
too. |
56 |
|
|
57 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
58 |
|
|
59 |
|
* tools/formed/formed/plugins/export/sql.py: Removed needless import. |
60 |
|
|
61 |
|
* tools/formed/formed/plugins/export/html.py: HTML table exporter |
62 |
|
uses new FileDialogFilter base class too. |
63 |
|
|
64 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
65 |
|
|
66 |
|
* tools/formed/formed/plugins/ui/*: New. All file exporters |
67 |
|
need a file dialog. Till now each of them pulled up its |
68 |
|
own. This was silly code replication. Now there is an abstract |
69 |
|
base class 'FileDialogFilter' which implements the common |
70 |
|
behavior. The file exporters should subclass it. |
71 |
|
|
72 |
|
* tools/formed/formed/plugins/export/sql.py: Subclass the SQL |
73 |
|
exporters from the new base class. TODO: Subclass the HTML |
74 |
|
exporter too. |
75 |
|
|
76 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
77 |
|
|
78 |
|
* tools/formed/formed/plugins/export/html.py: Make mode check |
79 |
|
work (again). |
80 |
|
|
81 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
82 |
|
|
83 |
|
* tools/formed/formed/plugins/export/html.py: Rendering of the HTML |
84 |
|
exprt works now in a recursive way. This change was needed because |
85 |
|
the structure of the formedtree has changed to be able to render |
86 |
|
full hirachically document stuctures. (nested lists) |
87 |
|
TODO: Fix modechecking |
88 |
|
|
89 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
90 |
|
|
91 |
|
* tools/formed/formed/plugins/web/plugin.py: Navigation rendering works |
92 |
|
now in recursive way. This change was needed because the structure |
93 |
|
of the formedtree has changed to be able to render full hirachically |
94 |
|
document stuctures. (nested lists) |
95 |
|
|
96 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
97 |
|
|
98 |
|
* tools/formed/formed/model/nodecomponents.py: use discard() |
99 |
|
instead of remove on sets. |
100 |
|
|
101 |
|
* tools/formed/formed/plugins/export/sql.py: Added an |
102 |
|
exporter for table views. |
103 |
|
|
104 |
|
* tools/formed/formed/config.py: Added the new exporter |
105 |
|
to the list of export filters. |
106 |
|
|
107 |
|
2007-08-30 Sascha L. Teichmann <[email protected]> |
108 |
|
|
109 |
|
* tools/formed/formed/model/data.py: Fixed a bug in |
110 |
|
Page.allWidgets() |
111 |
|
|
112 |
|
* tools/formed/formed/plugins/export/sql.py: Added an exporter |
113 |
|
for stored procudeures. |
114 |
|
|
115 |
|
* tools/formed/formed/config.py: Add the new SP exporter. |
116 |
|
|
117 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
118 |
|
|
119 |
|
* tools/formed/formed/plugins/web/plugin.py, |
120 |
|
tools/formed/formed/plugins/web/error_renderer.py: Added interface |
121 |
|
to get the errors for a whole page in te formular. These errors can |
122 |
|
now be displayed on the top of the formular. |
123 |
|
|
124 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
125 |
|
|
126 |
|
* tools/formed/formed/plugins/web/renderer.py: Finished implementation |
127 |
|
of the getFromData interface and prepared the rederer for generating |
128 |
|
nice error messages |
129 |
|
|
130 |
|
2007-08-28 Frank Koormann <[email protected]> |
131 |
|
|
132 |
|
* tools/formed/formed/plugins/export/sql.py |
133 |
|
(SchemaCreator.createSchema, SchemaCreator._createGroup): |
134 |
|
Fixed typo in created DDS (PRIMRAY -> PRIMARY) |
135 |
|
|
136 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
137 |
|
|
138 |
|
* tools/formed/formed/plugins/export/sql.py: Added small helper |
139 |
|
function to generated valid quotes within the sql statements |
140 |
|
|
141 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
142 |
|
|
143 |
|
* tools/formed/formed/plugins/export/sql.py: Added foreign keys |
144 |
|
for repeat tables. |
145 |
|
|
146 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
147 |
|
|
148 |
|
* tools/formed/formed/plugins/export/sql.py: When generating |
149 |
|
an extra table check in a table of same content exists. In |
150 |
|
this case reference the existing table. |
151 |
|
|
152 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
153 |
|
|
154 |
|
* tools/formed/formed/plugins/export/sql.py: Rewritten to produce |
155 |
|
_real_ SQL and respect repeat groups. |
156 |
|
|
157 |
|
* tools/formed/formed/model/data.py: Fixed bug with Group.isRepeat() |
158 |
|
|
159 |
|
* tools/formed/formed/plugins/web/renderer.py: Use "".join([]) |
160 |
|
instead of expensive += string concat in some places. |
161 |
|
|
162 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
163 |
|
|
164 |
|
* tools/formed/formed/model/data.py: Renamed GroupNode.getRepeat() |
165 |
|
to .isRepeat and return a bool. Fixed a bug in Page.allWidgets(). |
166 |
|
|
167 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
168 |
|
|
169 |
|
* tools/formed/plugins/web/renderer.py: Added Formdata interface. |
170 |
|
* tools/formed/model/data.py: Implements Formadata interface to |
171 |
|
textfields. Fieldset generated depends now on the "invisible" |
172 |
|
attribute of the groupnode. Field-label generation slightly changed. |
173 |
|
Added error indication to textfields |
174 |
|
|
175 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
176 |
|
|
177 |
|
* tools/formed/formed/model/data.py, |
178 |
|
tools/formed/formed/io/document.py: Removed support |
179 |
|
of logical groups. |
180 |
|
|
181 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
182 |
|
|
183 |
|
* tools/formed/formed/io/document.py: Avoid saving empty |
184 |
|
attributes. |
185 |
|
|
186 |
|
* tools/formed/test-data/simple.xml: Applied. |
187 |
|
|
188 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
189 |
|
|
190 |
|
* tools/formed/formed/model/data.py: Added 'repeat' and |
191 |
|
'invisible' attributes to group. TODO: remove logical group. |
192 |
|
|
193 |
|
2007-08-27 Torsten Irlaender <[email protected]> |
194 |
|
|
195 |
|
* tools/formed/plugins/web/plugin.py, |
196 |
|
tools/formed/plugins/web/renderer.py: Started to include stylesheet |
197 |
|
depending tags in the html generation. |
198 |
|
|
199 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
200 |
|
|
201 |
|
* tools/formed/formed/model/data.py, |
202 |
|
tools/formed/formed/io/document.py: Added a logical group. |
203 |
|
It has an attribute 'repeat' to indicate that it might |
204 |
|
be worthy an external table in DB schema. |
205 |
|
|
206 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
207 |
|
|
208 |
|
* tools/formed/formed/plugins/web/plugin.py: Support |
209 |
|
serving of static content. |
210 |
|
|
211 |
|
* tools/formed/formed/plugins/web/server.py: Removed |
212 |
|
old send code. |
213 |
|
|
214 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
215 |
|
|
216 |
|
* tools/formed/formed/plugins/web/plugin.py: Use new |
217 |
|
Response object. Fix typo. |
218 |
|
|
219 |
|
* tools/formed/formed/plugins/web/server.py: support |
220 |
|
response object to serve different MIME types. |
221 |
|
|
222 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
223 |
|
|
224 |
|
* tools/formed/formed/plugins/web/plugin.py: Add web.path |
225 |
|
to FORMED environment variable to specify the |
226 |
|
root of the static content. |
227 |
|
|
228 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
229 |
|
|
230 |
|
* tools/formed/formed/model/data.py, |
231 |
|
tools/formed/formed/model/nodecomponents.py: Fixed mode issues. |
232 |
|
|
233 |
|
* tools/formed/formed/plugins/web/www, |
234 |
|
tools/formed/formed/plugins/web/www/main.tmpl: New. Contains |
235 |
|
a template for the HTML output. |
236 |
|
|
237 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixes several smaller |
238 |
|
mode issues. Introduces CSS support. Simplified the action |
239 |
|
handling. |
240 |
|
|
241 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed the |
242 |
|
nagivation code. |
243 |
|
|
244 |
|
* tools/formed/formed/plugins/web/server.py: Added missing import. |
245 |
|
|
246 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
247 |
|
|
248 |
|
* tools/formed/formed/model/data.py: Added missing broadcast |
249 |
|
parameter to setAttribute() of RuleLeaf. |
250 |
|
|
251 |
|
* tools/formed/formed/plugins/web/plugin.py: Factorize |
252 |
|
HTTP server code out to separate module. |
253 |
|
|
254 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed |
255 |
|
needless -1 from pop() |
256 |
|
|
257 |
|
* tools/formed/formed/plugins/web/server.py: New. Contains |
258 |
|
the HTTP server code now. |
259 |
|
|
260 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
261 |
|
|
262 |
|
* tools/formed/test-data/simple.xml: Modified to contain a rule. |
263 |
|
|
264 |
|
* tools/formed/formed/model/expr.py: Added. A simple RPN |
265 |
|
expression evaluator. To avoid the problem of eval()ing |
266 |
|
arbitrary python expressions I've decided to use a very |
267 |
|
basic and limited stack machine to support rule checking. |
268 |
|
|
269 |
|
* tools/formed/formed/model/data.py: Added a RuleLeaf. |
270 |
|
|
271 |
|
* tools/formed/formed/io/document.py: Added factories for rules. |
272 |
|
|
273 |
|
* tools/formed/formed/model/nodecomponents.py: Add a method |
274 |
|
to find all items of a given type in document for a given |
275 |
|
mode. Usefull to find all rules in the tree. |
276 |
|
|
277 |
|
* tools/formed/formed/ui/controls.py: Added a listener mechanism |
278 |
|
to attribute table to report exceptions when setting a value |
279 |
|
from GUI. Useful to report compilation errors when setting |
280 |
|
expr of rule leafs. |
281 |
|
|
282 |
|
* tools/formed/formed/main.py: Added a method to track exceptions |
283 |
|
from the attribute table and pop up dialogs if they occur. |
284 |
|
Added a counter of rule modifications in tree. Useful if you |
285 |
|
want build cached data structures like rule sets and you want |
286 |
|
to know if they are still valid. |
287 |
|
|
288 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
289 |
|
|
290 |
|
* tools/formed/formed/plugins/export/sql.py: Fixed CHECK-constraint |
291 |
|
for checkbox values. (Syntax error). |
292 |
|
|
293 |
|
* tools/formed/formed/plugins/names/filter.py: Fixes in formularname |
294 |
|
generation |
295 |
|
|
296 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
297 |
|
|
298 |
|
* tools/formed/formed/plugins/names/filter.py: Separated Class for |
299 |
|
making the formularnames more database friendly. Added some more |
300 |
|
checks. |
301 |
|
* tools/formed/formed/plugins/export/sql.py: Make use of the fresh |
302 |
|
separated class, and some fixes in sql generation. |
303 |
|
|
304 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
305 |
|
|
306 |
|
* tools/formed/formed/plugins/export/html.py: Print lengths |
307 |
|
of external choice list. |
308 |
|
|
309 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
310 |
|
|
311 |
|
* tools/formed/formed/main.py: Little workaround for |
312 |
|
mode selection if someone adds an removes a mode. |
313 |
|
|
314 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
315 |
|
|
316 |
|
* tools/formed/test-data/simple.xml: Better test case for |
317 |
|
mode depended leaf items. |
318 |
|
|
319 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
320 |
|
to calculate the effective mode of an item. |
321 |
|
|
322 |
|
* tools/formed/formed/plugins/export/html.py: Use effective |
323 |
|
mode. TODO: the 'all' modus return false results sometimes. |
324 |
|
Cause: The modes are only cumulated over time. Removal is |
325 |
|
not done. |
326 |
|
|
327 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
328 |
|
|
329 |
|
* tools/formed/formed/plugins/export/html.py: Dump the items |
330 |
|
of radio groups and choices too. |
331 |
|
|
332 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
333 |
|
|
334 |
|
* tools/formed/formed/plugins/names/filter.py: Modified the renaming |
335 |
|
by formular names to make the naming more database friendly. |
336 |
|
Now only alphanumeric and underscore chars is allowed. |
337 |
|
|
338 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
339 |
|
|
340 |
|
* tools/formed/formed/plugins/export/html.py: Tweaked |
341 |
|
HTML table exporter a bit to be on par with the XSLT |
342 |
|
script. TODO: Dump items in radio and choice groups. |
343 |
|
|
344 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
345 |
|
|
346 |
|
* tools/formed/formed/plugins/names/filter.py: Removed |
347 |
|
HTML and SQL exporters. |
348 |
|
|
349 |
|
* tools/formed/formed/plugins/export, |
350 |
|
tools/formed/formed/plugins/export/__init__.py, |
351 |
|
tools/formed/formed/plugins/export/sql.py, |
352 |
|
tools/formed/formed/plugins/export/html.py: New: Contain |
353 |
|
the HTML and the SQL exporters now. |
354 |
|
|
355 |
|
* tools/formed/formed/config.py: Use exporters from different |
356 |
|
package now. |
357 |
|
|
358 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
359 |
|
|
360 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
361 |
|
pseudo SQL export filters. TODO: Move HTML and SQL filter |
362 |
|
in a new file (formed/plugins/export/htmlexport.py and |
363 |
|
sqlexport.py?) |
364 |
|
|
365 |
|
* tools/formed/formed/config.py: Install the new SQL filter. |
366 |
|
|
367 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
368 |
|
|
369 |
|
* tools/formed/formed/model/nodecomponents.py: Added a depth() |
370 |
|
method to determine the depth of particular tree item. |
371 |
|
|
372 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
373 |
|
HTML export filters. TODO: needs more work. |
374 |
|
|
375 |
|
* tools/formed/formed/config.py: Install the new HTML filter. |
376 |
|
|
377 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
378 |
|
|
379 |
|
* contrib/extract-xfa-fields_and_options.xsl: Added small xsl script |
380 |
|
to extract fields and options in the XFA Data in teh PDF. This |
381 |
|
script might me handy to indicate changes between the different |
382 |
|
formular versions. |
383 |
|
|
384 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
385 |
|
|
386 |
|
* tools/formed/formed/main.py: Add an 'all' mode to |
387 |
|
select all modes. ;-) |
388 |
|
|
389 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
390 |
|
|
391 |
|
* tools/formed/test-data/simple.xml, |
392 |
|
tools/formed/formed/model/data.py, |
393 |
|
tools/formed/formed/plugins/web/plugin.py, |
394 |
|
tools/formed/formed/plugins/web/renderer.py, |
395 |
|
tools/formed/formed/io/document.py, |
396 |
|
tools/formed/formed/main.py: Removed support for switch nodes. |
397 |
|
BEWARE: This breaks compatibility with older documents! |
398 |
|
|
399 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
400 |
|
|
401 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the |
402 |
|
getSelectedMode() from main now. |
403 |
|
|
404 |
|
* tools/formed/formed/main.py: selected mode is now hold |
405 |
|
in main. |
406 |
|
|
407 |
|
* tools/formed/formed/config.py: removed selected mode from |
408 |
|
env configuration. |
409 |
|
|
410 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
411 |
|
|
412 |
|
* tools/formed/formed/ui/controls.py: Attributes in GUI attribute |
413 |
|
table are now alphabetically sorted. |
414 |
|
|
415 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
416 |
|
|
417 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to |
418 |
|
establish the new 'modes' recursively. |
419 |
|
|
420 |
|
* tools/formed/formed/plugins/plugin.py: Pass main instead |
421 |
|
of cfg on plug-in start-up. |
422 |
|
|
423 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new |
424 |
|
'modes' attribute for rendering. |
425 |
|
|
426 |
|
* tools/formed/formed/plugins/web/renderer.py: Use decorators |
427 |
|
to check the new modes. |
428 |
|
|
429 |
|
* tools/formed/formed/main.py: Adjusted to new infrastructure. |
430 |
|
|
431 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
432 |
|
|
433 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
434 |
|
attribute 'modes' to NodeComponents. |
435 |
|
|
436 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
437 |
|
|
438 |
|
* tools/formed/formed/model/data.py: Small cosmetic cleanups |
439 |
|
|
440 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
441 |
|
|
442 |
|
* tools/formed/formed/plugins/web/renderer.py: Another fix |
443 |
|
for the hidden field. Argh! |
444 |
|
|
445 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
446 |
|
|
447 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed double |
448 |
|
generation of hidden page field. |
449 |
|
|
450 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
451 |
|
|
452 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
453 |
|
checks for radio groups. |
454 |
|
|
455 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
456 |
|
|
457 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
458 |
|
checks for choices. |
459 |
|
|
460 |
|
2007-08-21 Frank Koormann <[email protected]> |
461 |
|
|
462 |
|
* contrib/convert-formedtree2html.xsl: Display switch nodes as |
463 |
|
alternatives. |
464 |
|
|
465 |
|
2007-08-21 Frank Koormann <[email protected]> |
466 |
|
|
467 |
* contrib/convert-formedtree2html.xsl: |
* contrib/convert-formedtree2html.xsl: |
468 |
Replace technical types with readable descriptions |
Replace technical types with readable descriptions |