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