1 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
4 |
|
|
5 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
6 |
|
|
7 |
|
* tools/formed/formed/plugins/web/plugin.py: Remove request handlers |
8 |
|
and renderers. |
9 |
|
|
10 |
|
* tools/formed/formed/plugins/web/controllers.py: New. Contains handlers |
11 |
|
and renderers now. TODO: Move renderers to renderer.py |
12 |
|
|
13 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
14 |
|
|
15 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Adopted web template |
16 |
|
and bound in the the new added functions to create, edit, delete and |
17 |
|
show formdata. |
18 |
|
|
19 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
20 |
|
|
21 |
|
* tools/formed/formed/model/memory.py: Removed bisect and use a |
22 |
|
simple linear scan for dataset lookup now. |
23 |
|
|
24 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed various issues |
25 |
|
of different sizes. |
26 |
|
|
27 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
28 |
|
|
29 |
|
* tools/formed/formed/plugins/web/memory.py: Fixed getDataSetById |
30 |
|
fuction |
31 |
|
|
32 |
|
* tools/formed/formed/plugins/web/persistent.py: Added store() method |
33 |
|
to the DataSet interface |
34 |
|
|
35 |
|
* tools/formed/formed/plugins/web/renderer.py: Added handlers and |
36 |
|
renderes for create, update, delete and show actions on formular data. |
37 |
|
|
38 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
39 |
|
|
40 |
|
* tools/formed/formed/plugins/web/server.py: The mapping |
41 |
|
to methods is now driven by regualar expressions and |
42 |
|
a dictionary. Response objects are now able to send |
43 |
|
error codes. |
44 |
|
|
45 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed an issue |
46 |
|
when help in Formdata is None. Moved text for help into |
47 |
|
a top level '''...''' variable. |
48 |
|
|
49 |
|
* tools/formed/test-data/simple.xml: Added test for help. |
50 |
|
|
51 |
|
* tools/formed/formed/plugins/web/help.py: extra None check. |
52 |
|
|
53 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the new |
54 |
|
table driven mapping of reguest handling. TODO: split the |
55 |
|
WebPlugIn.pageHandler() method further to smaller handlers. |
56 |
|
Smaller clean ups and better exception handling. |
57 |
|
|
58 |
|
* tools/formed/formed/plugins/web/cache.py: Report OSErrors |
59 |
|
and do not catch them. |
60 |
|
|
61 |
|
2007-09-04 Torsten Irlaender <[email protected]> |
62 |
|
|
63 |
|
* tools/formed/formed/plugins/web/renderer.py, |
64 |
|
* tools/formed/formed/plugins/web/plugin.py: Added Interface to |
65 |
|
the HelpProvider and inserted help icons to the html output. |
66 |
|
Added decorator for Formelemnts, so textfields, choices etc. are now |
67 |
|
within a <div> tag. |
68 |
|
Modified the error messages. |
69 |
|
|
70 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
71 |
|
|
72 |
|
* tools/formed/formed/plugins/web/cache.py: New. Implements |
73 |
|
the server-side caching more clean. Fixes a bug with |
74 |
|
serving static content. |
75 |
|
|
76 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new cache. |
77 |
|
|
78 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
79 |
|
|
80 |
|
* tools/formed/formed/plugins/web/plugin.py: Set MIME type |
81 |
|
to "application/xhtml+xml" when serving help texts. |
82 |
|
|
83 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
84 |
|
|
85 |
|
* tools/formed/formed/plugins/export/diff.py: New. Exports |
86 |
|
pairwise differences between all modes. |
87 |
|
|
88 |
|
* tools/formed/formed/config.py: Use new export filter. |
89 |
|
|
90 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
91 |
|
|
92 |
|
* tools/formed/formed/plugins/web/help.py: New. Parses an |
93 |
|
XHTML document for id'ed divs and builds a help lookup. |
94 |
|
|
95 |
|
* tools/formed/formed/plugins/web/www/help.tmpl: Template for |
96 |
|
the help content frame. |
97 |
|
|
98 |
|
* tools/formed/formed/plugins/web/www/help.xhtml: Some simple |
99 |
|
help text index. |
100 |
|
|
101 |
|
* tools/formed/formed/plugins/web/plugin.py: Serves the help |
102 |
|
texts now. |
103 |
|
|
104 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
105 |
|
|
106 |
|
* tools/formed/formed/plugins/web/plugin.py: Only visible group |
107 |
|
elements will be rendered in the formular navigation. |
108 |
|
Formular pages in the navigation now have their own css-style |
109 |
|
attributes. |
110 |
|
|
111 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
112 |
|
|
113 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Added div area for page |
114 |
|
errors in template |
115 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed undefined |
116 |
|
pageerrors variable |
117 |
|
|
118 |
|
2007-09-03 Frank Koormann <[email protected]> |
119 |
|
|
120 |
|
* tools/formed/formed/plugins/export/html.py |
121 |
|
(RecursiveExporter): Added annotation to export |
122 |
|
(fillRow()): Renamed old fillNine to this more generic name. |
123 |
|
|
124 |
|
|
125 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
126 |
|
|
127 |
|
* tools/formed/formed/plugins/web/renderer.py: Using the decorator |
128 |
|
from model.misc now. |
129 |
|
|
130 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
131 |
|
|
132 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
133 |
|
'annotation' attribute to node components. This is to |
134 |
|
enable FormEd document authors to add comments to groups |
135 |
|
and fields. |
136 |
|
|
137 |
|
2007-09-03 Frank Koormann <[email protected]> |
138 |
|
|
139 |
|
* tools/formed/formed/model/nodecomponents.py |
140 |
|
(NodeComponent.getParent): New method to get node components parent. |
141 |
|
|
142 |
|
* tools/formed/formed/plugins/export/html.py: Export Choice option |
143 |
|
as simple list instead of collection of bools. |
144 |
|
|
145 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
146 |
|
|
147 |
|
* tools/formed/formed/model/persistent.py: Interfaces to abstract |
148 |
|
from persistent storage details. |
149 |
|
|
150 |
|
* tools/formed/formed/model/memory.py: In core implementation |
151 |
|
of the persistent interfaces. |
152 |
|
|
153 |
|
* tools/formed/formed/main.py: Holds a memory data store now. |
154 |
|
|
155 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
156 |
|
|
157 |
|
* tools/formed/formed/plugins/export/sql.py, |
158 |
|
tools/formed/formed/plugins/export/html.py: Fixed constructor chains |
159 |
|
for FileDialogFilter sub classes. |
160 |
|
|
161 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
162 |
|
|
163 |
|
* tools/formed/formed/model/misc.py: Checking the mode in recursive |
164 |
|
tree traversals is a common task. To ease this a decorator function |
165 |
|
checkMode in union with sub classing ModeChecker can be used. |
166 |
|
To make it work simply subclass from ModeChecker and add the decorator |
167 |
|
to the methods that need mode tracking. Before you start the recursion |
168 |
|
call self.prepareDescent(). |
169 |
|
|
170 |
|
* tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme |
171 |
|
now which replace the old. TODO: Make the web renderer use the new scheme |
172 |
|
too. |
173 |
|
|
174 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
175 |
|
|
176 |
|
* tools/formed/formed/plugins/export/sql.py: Removed needless import. |
177 |
|
|
178 |
|
* tools/formed/formed/plugins/export/html.py: HTML table exporter |
179 |
|
uses new FileDialogFilter base class too. |
180 |
|
|
181 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
182 |
|
|
183 |
|
* tools/formed/formed/plugins/ui/*: New. All file exporters |
184 |
|
need a file dialog. Till now each of them pulled up its |
185 |
|
own. This was silly code replication. Now there is an abstract |
186 |
|
base class 'FileDialogFilter' which implements the common |
187 |
|
behavior. The file exporters should subclass it. |
188 |
|
|
189 |
|
* tools/formed/formed/plugins/export/sql.py: Subclass the SQL |
190 |
|
exporters from the new base class. TODO: Subclass the HTML |
191 |
|
exporter too. |
192 |
|
|
193 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
194 |
|
|
195 |
|
* tools/formed/formed/plugins/export/html.py: Make mode check |
196 |
|
work (again). |
197 |
|
|
198 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
199 |
|
|
200 |
|
* tools/formed/formed/plugins/export/html.py: Rendering of the HTML |
201 |
|
exprt works now in a recursive way. This change was needed because |
202 |
|
the structure of the formedtree has changed to be able to render |
203 |
|
full hirachically document stuctures. (nested lists) |
204 |
|
TODO: Fix modechecking |
205 |
|
|
206 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
207 |
|
|
208 |
|
* tools/formed/formed/plugins/web/plugin.py: Navigation rendering works |
209 |
|
now in recursive way. This change was needed because the structure |
210 |
|
of the formedtree has changed to be able to render full hirachically |
211 |
|
document stuctures. (nested lists) |
212 |
|
|
213 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
214 |
|
|
215 |
|
* tools/formed/formed/model/nodecomponents.py: use discard() |
216 |
|
instead of remove on sets. |
217 |
|
|
218 |
|
* tools/formed/formed/plugins/export/sql.py: Added an |
219 |
|
exporter for table views. |
220 |
|
|
221 |
|
* tools/formed/formed/config.py: Added the new exporter |
222 |
|
to the list of export filters. |
223 |
|
|
224 |
|
2007-08-30 Sascha L. Teichmann <[email protected]> |
225 |
|
|
226 |
|
* tools/formed/formed/model/data.py: Fixed a bug in |
227 |
|
Page.allWidgets() |
228 |
|
|
229 |
|
* tools/formed/formed/plugins/export/sql.py: Added an exporter |
230 |
|
for stored procudeures. |
231 |
|
|
232 |
|
* tools/formed/formed/config.py: Add the new SP exporter. |
233 |
|
|
234 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
235 |
|
|
236 |
|
* tools/formed/formed/plugins/web/plugin.py, |
237 |
|
tools/formed/formed/plugins/web/error_renderer.py: Added interface |
238 |
|
to get the errors for a whole page in te formular. These errors can |
239 |
|
now be displayed on the top of the formular. |
240 |
|
|
241 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
242 |
|
|
243 |
|
* tools/formed/formed/plugins/web/renderer.py: Finished implementation |
244 |
|
of the getFromData interface and prepared the rederer for generating |
245 |
|
nice error messages |
246 |
|
|
247 |
|
2007-08-28 Frank Koormann <[email protected]> |
248 |
|
|
249 |
|
* tools/formed/formed/plugins/export/sql.py |
250 |
|
(SchemaCreator.createSchema, SchemaCreator._createGroup): |
251 |
|
Fixed typo in created DDS (PRIMRAY -> PRIMARY) |
252 |
|
|
253 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
254 |
|
|
255 |
|
* tools/formed/formed/plugins/export/sql.py: Added small helper |
256 |
|
function to generated valid quotes within the sql statements |
257 |
|
|
258 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
259 |
|
|
260 |
|
* tools/formed/formed/plugins/export/sql.py: Added foreign keys |
261 |
|
for repeat tables. |
262 |
|
|
263 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
264 |
|
|
265 |
|
* tools/formed/formed/plugins/export/sql.py: When generating |
266 |
|
an extra table check in a table of same content exists. In |
267 |
|
this case reference the existing table. |
268 |
|
|
269 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
270 |
|
|
271 |
|
* tools/formed/formed/plugins/export/sql.py: Rewritten to produce |
272 |
|
_real_ SQL and respect repeat groups. |
273 |
|
|
274 |
|
* tools/formed/formed/model/data.py: Fixed bug with Group.isRepeat() |
275 |
|
|
276 |
|
* tools/formed/formed/plugins/web/renderer.py: Use "".join([]) |
277 |
|
instead of expensive += string concat in some places. |
278 |
|
|
279 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
280 |
|
|
281 |
|
* tools/formed/formed/model/data.py: Renamed GroupNode.getRepeat() |
282 |
|
to .isRepeat and return a bool. Fixed a bug in Page.allWidgets(). |
283 |
|
|
284 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
285 |
|
|
286 |
|
* tools/formed/plugins/web/renderer.py: Added Formdata interface. |
287 |
|
* tools/formed/model/data.py: Implements Formadata interface to |
288 |
|
textfields. Fieldset generated depends now on the "invisible" |
289 |
|
attribute of the groupnode. Field-label generation slightly changed. |
290 |
|
Added error indication to textfields |
291 |
|
|
292 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
293 |
|
|
294 |
|
* tools/formed/formed/model/data.py, |
295 |
|
tools/formed/formed/io/document.py: Removed support |
296 |
|
of logical groups. |
297 |
|
|
298 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
299 |
|
|
300 |
|
* tools/formed/formed/io/document.py: Avoid saving empty |
301 |
|
attributes. |
302 |
|
|
303 |
|
* tools/formed/test-data/simple.xml: Applied. |
304 |
|
|
305 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
306 |
|
|
307 |
|
* tools/formed/formed/model/data.py: Added 'repeat' and |
308 |
|
'invisible' attributes to group. TODO: remove logical group. |
309 |
|
|
310 |
|
2007-08-27 Torsten Irlaender <[email protected]> |
311 |
|
|
312 |
|
* tools/formed/plugins/web/plugin.py, |
313 |
|
tools/formed/plugins/web/renderer.py: Started to include stylesheet |
314 |
|
depending tags in the html generation. |
315 |
|
|
316 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
317 |
|
|
318 |
|
* tools/formed/formed/model/data.py, |
319 |
|
tools/formed/formed/io/document.py: Added a logical group. |
320 |
|
It has an attribute 'repeat' to indicate that it might |
321 |
|
be worthy an external table in DB schema. |
322 |
|
|
323 |
2007-08-27 Sascha L. Teichmann <[email protected]> |
2007-08-27 Sascha L. Teichmann <[email protected]> |
324 |
|
|
325 |
* tools/formed/formed/plugins/web/plugin.py: Support |
* tools/formed/formed/plugins/web/plugin.py: Support |