1 |
|
2007-09-10 Sascha L. Teichmann <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/plugins/web/controllers.py: Pretty |
4 |
|
print format data (dates e.g) |
5 |
|
|
6 |
|
2007-09-10 Sascha L. Teichmann <[email protected]> |
7 |
|
|
8 |
|
* tools/formed/formed/plugins/web/controllers.py: Modified |
9 |
|
ErrorStats a bit to avoid mysterious extra error on page. |
10 |
|
No clue why this works. |
11 |
|
|
12 |
|
2007-09-10 Sascha L. Teichmann <[email protected]> |
13 |
|
|
14 |
|
* tools/formed/formed/plugins/web/form_renderer.py: Fixed value |
15 |
|
problem with radio groups, too. |
16 |
|
|
17 |
|
2007-09-10 Torsten Irlaender <[email protected]> |
18 |
|
* tools/formed/formed/plugins/web/controllers.py: Sessions are now |
19 |
|
really removed when deleting a dataset. |
20 |
|
|
21 |
|
2007-09-10 Torsten Irlaender <[email protected]> |
22 |
|
|
23 |
|
* tools/formed/formed/plugins/web/controllers.py: Added new Class |
24 |
|
ErrorStats which provides Information on remaining errors per page. |
25 |
|
|
26 |
|
* tools/formed/formed/plugins/web/renderers.py: Finished movement of |
27 |
|
the renderer methods from controllers.py to renderers.py. |
28 |
|
|
29 |
|
* tools/formed/formed/plugins/web/plugin.py: Removed render_session |
30 |
|
handlers |
31 |
|
|
32 |
|
2007-09-10 Sascha L. Teichmann <[email protected]> |
33 |
|
|
34 |
|
* tools/formed/formed/plugins/web/form_renderer.py: values for |
35 |
|
choices are generated from the document tree now. This brings |
36 |
|
the state storage of select boxes in HTML to live. |
37 |
|
|
38 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
39 |
|
|
40 |
|
* tools/formed/formed/plugins/web/semantic.py: Fixed problems with |
41 |
|
range checking of integers. |
42 |
|
|
43 |
|
* tools/formed/formed/plugins/web/controllers.py: Added class |
44 |
|
ErrorItem to track errors. They are stored in the session. |
45 |
|
|
46 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
47 |
|
|
48 |
|
* tools/formed/formed/model/nodecomponents.py: Fixed returning |
49 |
|
wrong index in Document.indexOfcomponentByClassAndName. |
50 |
|
|
51 |
|
* tools/formed/formed/plugins/web/form_renderer.py: 'error' was |
52 |
|
written 'errot' in renderer for textareas. |
53 |
|
|
54 |
|
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
55 |
|
|
56 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
57 |
|
|
58 |
|
* tools/formed/formed/plugins/web/help.py: Added a 'hasHelp' |
59 |
|
method. Could be cheaper for some implementations of help. |
60 |
|
|
61 |
|
* tools/formed/formed/plugins/web/form_renderer.py: Modified |
62 |
|
FormData to have distinct getData(), getHelp() and getError() |
63 |
|
methods. Various bug fixes. |
64 |
|
|
65 |
|
* tools/formed/formed/plugins/web/controllers.py: Implements the |
66 |
|
new FormData (trivial by now). |
67 |
|
|
68 |
|
* tools/formed/formed/plugins/web/renderer.py: New FormData and |
69 |
|
some bug fixes. |
70 |
|
|
71 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
72 |
|
|
73 |
|
* tools/formed/formed/model/memory.py, |
74 |
|
tools/formed/formed/model/persistent.py: Add a getValue() method |
75 |
|
to dataset abstraction. This is a bit of a workaround to bring |
76 |
|
global access across pages for rule checking to work. |
77 |
|
|
78 |
|
* tools/formed/formed/model/data.py: Fixed: When setting a new expression |
79 |
|
the compiled version was not stored in the RuleLeaf. |
80 |
|
|
81 |
|
* tools/formed/formed/model/expr.py: shlex lexer does not like unicode. |
82 |
|
convert the expression string to ascii for compilation. |
83 |
|
|
84 |
|
* tools/formed/formed/plugins/web/semantic.py: Remove the 'box' because |
85 |
|
valid data is stored to the dataset immediately now. Fixed a bug |
86 |
|
with integer handler. |
87 |
|
|
88 |
|
* tools/formed/formed/plugins/web/controllers.py: Removed the semantic 'box' |
89 |
|
stuff. When a submit is done extract the rules from the tree document |
90 |
|
that are effected by the modified variables and check them. |
91 |
|
|
92 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed exception handling |
93 |
|
when dealing with templates. |
94 |
|
|
95 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
96 |
|
* tools/formed/formed/plugins/web/controllers.py, |
97 |
|
tools/formed/formed/plugins/web/renderer.py: Moved more render |
98 |
|
functions into renderer.py. New render classes are: |
99 |
|
DataSetDigestRenderer, DataSetNavigationRenderer, |
100 |
|
DataSetFormularRenderer, ConfirmationDialogRenderer |
101 |
|
|
102 |
|
Note: The new methods are only called from selected handlers. Other |
103 |
|
handlers call the renderes in the old way. |
104 |
|
|
105 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
106 |
|
* tools/formed/formed/plugins/web/form_renderer.py: Renamed |
107 |
|
renderer.py to form_renderer.py. This file will contain formular |
108 |
|
specfic render methods in the future. |
109 |
|
* tools/formed/formed/plugins/web/renderer.py: Added new renderer.py |
110 |
|
which will contain general render methods. |
111 |
|
* tools/formed/formed/plugins/web/controllers.py: Began to move all |
112 |
|
rendering into renderer.py or form_renderer.py. This file will only |
113 |
|
contain teh handlers in the future. |
114 |
|
|
115 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
116 |
|
* tools/formed/formed/plugins/web/renderer.py, |
117 |
|
tools/formed/formed/plugins/web/controller.py: |
118 |
|
Renderes now get an instance of the formdata object to provide |
119 |
|
access the data needed to render various infoboxes etc. Handler |
120 |
|
instanciate the formdata. |
121 |
|
|
122 |
|
2007-09-06 Torsten Irlaender <[email protected]> |
123 |
|
* tools/formed/formed/plugins/web/renderer.py: Mainly tried to get the |
124 |
|
getFormData interface to work. Added two small semantic fixes, but |
125 |
|
did not manage to get it up. Need to exime this a little bit more |
126 |
|
* tools/formed/formed/plugins/web/controllers.py: Put <div> tags |
127 |
|
around the menus on the right side to be able to assign different |
128 |
|
styles. Added dataset actions while editing a dataset. |
129 |
|
|
130 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
131 |
|
* tools/formed/formed/model/memory.py: Fixed deleting datasets by |
132 |
|
removing unwanted del method |
133 |
|
* tools/formed/formed/plugins/web/controllers.py: Implemented |
134 |
|
confiration dialogs for create, delete, and select aof datasets. Started to use |
135 |
|
templates as well for larger information units like the dataset summary. |
136 |
|
|
137 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
138 |
|
|
139 |
|
* tools/formed/formed/model/nodecomponents.py: Added a |
140 |
|
method to document to find index of page. |
141 |
|
|
142 |
|
* tools/formed/formed/plugins/web/semantic.py: Added getValue() |
143 |
|
to fetch data from semantic box. |
144 |
|
|
145 |
|
* tools/formed/formed/plugins/web/controllers.py: Added new |
146 |
|
FormData implementation to support DB and semantic box. |
147 |
|
|
148 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
149 |
|
|
150 |
|
* tools/formed/formed/plugins/web/renderer.py: escaped |
151 |
|
error message. |
152 |
|
|
153 |
|
* tools/formed/formed/plugins/web/controllers.py: Don't fetch |
154 |
|
dataset from backend each time a page is up to edit. |
155 |
|
|
156 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
157 |
|
|
158 |
|
* tools/formed/formed/plugins/web/renderer.py: SimplePageRenderer |
159 |
|
returns "Page not found" if given page is None. |
160 |
|
|
161 |
|
* tools/formed/formed/plugins/web/controllers.py: Added checks |
162 |
|
to avoid crashing when ask for a non-existent page. |
163 |
|
|
164 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
165 |
|
|
166 |
|
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
167 |
|
|
168 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
169 |
|
|
170 |
|
* tools/formed/formed/plugins/web/plugin.py: Remove request handlers |
171 |
|
and renderers. |
172 |
|
|
173 |
|
* tools/formed/formed/plugins/web/controllers.py: New. Contains handlers |
174 |
|
and renderers now. TODO: Move renderers to renderer.py |
175 |
|
|
176 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
177 |
|
|
178 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Adopted web template |
179 |
|
and bound in the the new added functions to create, edit, delete and |
180 |
|
show formdata. |
181 |
|
|
182 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
183 |
|
|
184 |
|
* tools/formed/formed/model/memory.py: Removed bisect and use a |
185 |
|
simple linear scan for dataset lookup now. |
186 |
|
|
187 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed various issues |
188 |
|
of different sizes. |
189 |
|
|
190 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
191 |
|
|
192 |
|
* tools/formed/formed/plugins/web/memory.py: Fixed getDataSetById |
193 |
|
fuction |
194 |
|
|
195 |
|
* tools/formed/formed/plugins/web/persistent.py: Added store() method |
196 |
|
to the DataSet interface |
197 |
|
|
198 |
|
* tools/formed/formed/plugins/web/renderer.py: Added handlers and |
199 |
|
renderes for create, update, delete and show actions on formular data. |
200 |
|
|
201 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
202 |
|
|
203 |
|
* tools/formed/formed/plugins/web/server.py: The mapping |
204 |
|
to methods is now driven by regualar expressions and |
205 |
|
a dictionary. Response objects are now able to send |
206 |
|
error codes. |
207 |
|
|
208 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed an issue |
209 |
|
when help in Formdata is None. Moved text for help into |
210 |
|
a top level '''...''' variable. |
211 |
|
|
212 |
|
* tools/formed/test-data/simple.xml: Added test for help. |
213 |
|
|
214 |
|
* tools/formed/formed/plugins/web/help.py: extra None check. |
215 |
|
|
216 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the new |
217 |
|
table driven mapping of reguest handling. TODO: split the |
218 |
|
WebPlugIn.pageHandler() method further to smaller handlers. |
219 |
|
Smaller clean ups and better exception handling. |
220 |
|
|
221 |
|
* tools/formed/formed/plugins/web/cache.py: Report OSErrors |
222 |
|
and do not catch them. |
223 |
|
|
224 |
|
2007-09-04 Torsten Irlaender <[email protected]> |
225 |
|
|
226 |
|
* tools/formed/formed/plugins/web/renderer.py, |
227 |
|
* tools/formed/formed/plugins/web/plugin.py: Added Interface to |
228 |
|
the HelpProvider and inserted help icons to the html output. |
229 |
|
Added decorator for Formelemnts, so textfields, choices etc. are now |
230 |
|
within a <div> tag. |
231 |
|
Modified the error messages. |
232 |
|
|
233 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
234 |
|
|
235 |
|
* tools/formed/formed/plugins/web/cache.py: New. Implements |
236 |
|
the server-side caching more clean. Fixes a bug with |
237 |
|
serving static content. |
238 |
|
|
239 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new cache. |
240 |
|
|
241 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
242 |
|
|
243 |
|
* tools/formed/formed/plugins/web/plugin.py: Set MIME type |
244 |
|
to "application/xhtml+xml" when serving help texts. |
245 |
|
|
246 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
247 |
|
|
248 |
|
* tools/formed/formed/plugins/export/diff.py: New. Exports |
249 |
|
pairwise differences between all modes. |
250 |
|
|
251 |
|
* tools/formed/formed/config.py: Use new export filter. |
252 |
|
|
253 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
254 |
|
|
255 |
|
* tools/formed/formed/plugins/web/help.py: New. Parses an |
256 |
|
XHTML document for id'ed divs and builds a help lookup. |
257 |
|
|
258 |
|
* tools/formed/formed/plugins/web/www/help.tmpl: Template for |
259 |
|
the help content frame. |
260 |
|
|
261 |
|
* tools/formed/formed/plugins/web/www/help.xhtml: Some simple |
262 |
|
help text index. |
263 |
|
|
264 |
|
* tools/formed/formed/plugins/web/plugin.py: Serves the help |
265 |
|
texts now. |
266 |
|
|
267 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
268 |
|
|
269 |
|
* tools/formed/formed/plugins/web/plugin.py: Only visible group |
270 |
|
elements will be rendered in the formular navigation. |
271 |
|
Formular pages in the navigation now have their own css-style |
272 |
|
attributes. |
273 |
|
|
274 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
275 |
|
|
276 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Added div area for page |
277 |
|
errors in template |
278 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed undefined |
279 |
|
pageerrors variable |
280 |
|
|
281 |
|
2007-09-03 Frank Koormann <[email protected]> |
282 |
|
|
283 |
|
* tools/formed/formed/plugins/export/html.py |
284 |
|
(RecursiveExporter): Added annotation to export |
285 |
|
(fillRow()): Renamed old fillNine to this more generic name. |
286 |
|
|
287 |
|
|
288 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
289 |
|
|
290 |
|
* tools/formed/formed/plugins/web/renderer.py: Using the decorator |
291 |
|
from model.misc now. |
292 |
|
|
293 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
294 |
|
|
295 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
296 |
|
'annotation' attribute to node components. This is to |
297 |
|
enable FormEd document authors to add comments to groups |
298 |
|
and fields. |
299 |
|
|
300 |
|
2007-09-03 Frank Koormann <[email protected]> |
301 |
|
|
302 |
|
* tools/formed/formed/model/nodecomponents.py |
303 |
|
(NodeComponent.getParent): New method to get node components parent. |
304 |
|
|
305 |
|
* tools/formed/formed/plugins/export/html.py: Export Choice option |
306 |
|
as simple list instead of collection of bools. |
307 |
|
|
308 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
309 |
|
|
310 |
|
* tools/formed/formed/model/persistent.py: Interfaces to abstract |
311 |
|
from persistent storage details. |
312 |
|
|
313 |
|
* tools/formed/formed/model/memory.py: In core implementation |
314 |
|
of the persistent interfaces. |
315 |
|
|
316 |
|
* tools/formed/formed/main.py: Holds a memory data store now. |
317 |
|
|
318 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
319 |
|
|
320 |
|
* tools/formed/formed/plugins/export/sql.py, |
321 |
|
tools/formed/formed/plugins/export/html.py: Fixed constructor chains |
322 |
|
for FileDialogFilter sub classes. |
323 |
|
|
324 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
325 |
|
|
326 |
|
* tools/formed/formed/model/misc.py: Checking the mode in recursive |
327 |
|
tree traversals is a common task. To ease this a decorator function |
328 |
|
checkMode in union with sub classing ModeChecker can be used. |
329 |
|
To make it work simply subclass from ModeChecker and add the decorator |
330 |
|
to the methods that need mode tracking. Before you start the recursion |
331 |
|
call self.prepareDescent(). |
332 |
|
|
333 |
|
* tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme |
334 |
|
now which replace the old. TODO: Make the web renderer use the new scheme |
335 |
|
too. |
336 |
|
|
337 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
338 |
|
|
339 |
|
* tools/formed/formed/plugins/export/sql.py: Removed needless import. |
340 |
|
|
341 |
|
* tools/formed/formed/plugins/export/html.py: HTML table exporter |
342 |
|
uses new FileDialogFilter base class too. |
343 |
|
|
344 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
345 |
|
|
346 |
|
* tools/formed/formed/plugins/ui/*: New. All file exporters |
347 |
|
need a file dialog. Till now each of them pulled up its |
348 |
|
own. This was silly code replication. Now there is an abstract |
349 |
|
base class 'FileDialogFilter' which implements the common |
350 |
|
behavior. The file exporters should subclass it. |
351 |
|
|
352 |
|
* tools/formed/formed/plugins/export/sql.py: Subclass the SQL |
353 |
|
exporters from the new base class. TODO: Subclass the HTML |
354 |
|
exporter too. |
355 |
|
|
356 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
357 |
|
|
358 |
|
* tools/formed/formed/plugins/export/html.py: Make mode check |
359 |
|
work (again). |
360 |
|
|
361 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
362 |
|
|
363 |
|
* tools/formed/formed/plugins/export/html.py: Rendering of the HTML |
364 |
|
exprt works now in a recursive way. This change was needed because |
365 |
|
the structure of the formedtree has changed to be able to render |
366 |
|
full hirachically document stuctures. (nested lists) |
367 |
|
TODO: Fix modechecking |
368 |
|
|
369 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
370 |
|
|
371 |
|
* tools/formed/formed/plugins/web/plugin.py: Navigation rendering works |
372 |
|
now in recursive way. This change was needed because the structure |
373 |
|
of the formedtree has changed to be able to render full hirachically |
374 |
|
document stuctures. (nested lists) |
375 |
|
|
376 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
377 |
|
|
378 |
|
* tools/formed/formed/model/nodecomponents.py: use discard() |
379 |
|
instead of remove on sets. |
380 |
|
|
381 |
|
* tools/formed/formed/plugins/export/sql.py: Added an |
382 |
|
exporter for table views. |
383 |
|
|
384 |
|
* tools/formed/formed/config.py: Added the new exporter |
385 |
|
to the list of export filters. |
386 |
|
|
387 |
|
2007-08-30 Sascha L. Teichmann <[email protected]> |
388 |
|
|
389 |
|
* tools/formed/formed/model/data.py: Fixed a bug in |
390 |
|
Page.allWidgets() |
391 |
|
|
392 |
|
* tools/formed/formed/plugins/export/sql.py: Added an exporter |
393 |
|
for stored procudeures. |
394 |
|
|
395 |
|
* tools/formed/formed/config.py: Add the new SP exporter. |
396 |
|
|
397 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
398 |
|
|
399 |
|
* tools/formed/formed/plugins/web/plugin.py, |
400 |
|
tools/formed/formed/plugins/web/error_renderer.py: Added interface |
401 |
|
to get the errors for a whole page in te formular. These errors can |
402 |
|
now be displayed on the top of the formular. |
403 |
|
|
404 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
405 |
|
|
406 |
|
* tools/formed/formed/plugins/web/renderer.py: Finished implementation |
407 |
|
of the getFromData interface and prepared the rederer for generating |
408 |
|
nice error messages |
409 |
|
|
410 |
|
2007-08-28 Frank Koormann <[email protected]> |
411 |
|
|
412 |
|
* tools/formed/formed/plugins/export/sql.py |
413 |
|
(SchemaCreator.createSchema, SchemaCreator._createGroup): |
414 |
|
Fixed typo in created DDS (PRIMRAY -> PRIMARY) |
415 |
|
|
416 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
417 |
|
|
418 |
|
* tools/formed/formed/plugins/export/sql.py: Added small helper |
419 |
|
function to generated valid quotes within the sql statements |
420 |
|
|
421 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
422 |
|
|
423 |
|
* tools/formed/formed/plugins/export/sql.py: Added foreign keys |
424 |
|
for repeat tables. |
425 |
|
|
426 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
427 |
|
|
428 |
|
* tools/formed/formed/plugins/export/sql.py: When generating |
429 |
|
an extra table check in a table of same content exists. In |
430 |
|
this case reference the existing table. |
431 |
|
|
432 |
2007-08-29 Sascha L. Teichmann <[email protected]> |
2007-08-29 Sascha L. Teichmann <[email protected]> |
433 |
|
|
434 |
* tools/formed/formed/plugins/export/sql.py: Rewritten to produce |
* tools/formed/formed/plugins/export/sql.py: Rewritten to produce |