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