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