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]> |
2007-08-20 Torsten Irlaender <[email protected]> |
441 |
|
|
442 |
* tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in |
* tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in |