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