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