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