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