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