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