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