1 |
|
2007-09.10 Torsten Irlaender <[email protected]> |
2 |
|
* tools/formed/formed/plugins/web/controllers.py: Added new Class |
3 |
|
ErrorStats which provides Information on remaining errors per page. |
4 |
|
* tools/formed/formed/plugins/web/renderers.py: Finished movement of |
5 |
|
the renderer methods from controllers.py to renderers.py. |
6 |
|
* tools/formed/formed/plugins/web/plugin.py: Removed render_session |
7 |
|
handlers |
8 |
|
|
9 |
|
2007-09-10 Sascha L. Teichmann <[email protected]> |
10 |
|
|
11 |
|
* tools/formed/formed/plugins/web/form_renderer.py: values for |
12 |
|
choices are generated from the document tree now. This brings |
13 |
|
the state storage of select boxes in HTML to live. |
14 |
|
|
15 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
16 |
|
|
17 |
|
* tools/formed/formed/plugins/web/semantic.py: Fixed problems with |
18 |
|
range checking of integers. |
19 |
|
|
20 |
|
* tools/formed/formed/plugins/web/controllers.py: Added class |
21 |
|
ErrorItem to track errors. They are stored in the session. |
22 |
|
|
23 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
24 |
|
|
25 |
|
* tools/formed/formed/model/nodecomponents.py: Fixed returning |
26 |
|
wrong index in Document.indexOfcomponentByClassAndName. |
27 |
|
|
28 |
|
* tools/formed/formed/plugins/web/form_renderer.py: 'error' was |
29 |
|
written 'errot' in renderer for textareas. |
30 |
|
|
31 |
|
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
32 |
|
|
33 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
34 |
|
|
35 |
|
* tools/formed/formed/plugins/web/help.py: Added a 'hasHelp' |
36 |
|
method. Could be cheaper for some implementations of help. |
37 |
|
|
38 |
|
* tools/formed/formed/plugins/web/form_renderer.py: Modified |
39 |
|
FormData to have distinct getData(), getHelp() and getError() |
40 |
|
methods. Various bug fixes. |
41 |
|
|
42 |
|
* tools/formed/formed/plugins/web/controllers.py: Implements the |
43 |
|
new FormData (trivial by now). |
44 |
|
|
45 |
|
* tools/formed/formed/plugins/web/renderer.py: New FormData and |
46 |
|
some bug fixes. |
47 |
|
|
48 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
49 |
|
|
50 |
|
* tools/formed/formed/model/memory.py, |
51 |
|
tools/formed/formed/model/persistent.py: Add a getValue() method |
52 |
|
to dataset abstraction. This is a bit of a workaround to bring |
53 |
|
global access across pages for rule checking to work. |
54 |
|
|
55 |
|
* tools/formed/formed/model/data.py: Fixed: When setting a new expression |
56 |
|
the compiled version was not stored in the RuleLeaf. |
57 |
|
|
58 |
|
* tools/formed/formed/model/expr.py: shlex lexer does not like unicode. |
59 |
|
convert the expression string to ascii for compilation. |
60 |
|
|
61 |
|
* tools/formed/formed/plugins/web/semantic.py: Remove the 'box' because |
62 |
|
valid data is stored to the dataset immediately now. Fixed a bug |
63 |
|
with integer handler. |
64 |
|
|
65 |
|
* tools/formed/formed/plugins/web/controllers.py: Removed the semantic 'box' |
66 |
|
stuff. When a submit is done extract the rules from the tree document |
67 |
|
that are effected by the modified variables and check them. |
68 |
|
|
69 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed exception handling |
70 |
|
when dealing with templates. |
71 |
|
|
72 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
73 |
|
* tools/formed/formed/plugins/web/controllers.py, |
74 |
|
tools/formed/formed/plugins/web/renderer.py: Moved more render |
75 |
|
functions into renderer.py. New render classes are: |
76 |
|
DataSetDigestRenderer, DataSetNavigationRenderer, |
77 |
|
DataSetFormularRenderer, ConfirmationDialogRenderer |
78 |
|
|
79 |
|
Note: The new methods are only called from selected handlers. Other |
80 |
|
handlers call the renderes in the old way. |
81 |
|
|
82 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
83 |
|
* tools/formed/formed/plugins/web/form_renderer.py: Renamed |
84 |
|
renderer.py to form_renderer.py. This file will contain formular |
85 |
|
specfic render methods in the future. |
86 |
|
* tools/formed/formed/plugins/web/renderer.py: Added new renderer.py |
87 |
|
which will contain general render methods. |
88 |
|
* tools/formed/formed/plugins/web/controllers.py: Began to move all |
89 |
|
rendering into renderer.py or form_renderer.py. This file will only |
90 |
|
contain teh handlers in the future. |
91 |
|
|
92 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
93 |
|
* tools/formed/formed/plugins/web/renderer.py, |
94 |
|
tools/formed/formed/plugins/web/controller.py: |
95 |
|
Renderes now get an instance of the formdata object to provide |
96 |
|
access the data needed to render various infoboxes etc. Handler |
97 |
|
instanciate the formdata. |
98 |
|
|
99 |
|
2007-09-06 Torsten Irlaender <[email protected]> |
100 |
|
* tools/formed/formed/plugins/web/renderer.py: Mainly tried to get the |
101 |
|
getFormData interface to work. Added two small semantic fixes, but |
102 |
|
did not manage to get it up. Need to exime this a little bit more |
103 |
|
* tools/formed/formed/plugins/web/controllers.py: Put <div> tags |
104 |
|
around the menus on the right side to be able to assign different |
105 |
|
styles. Added dataset actions while editing a dataset. |
106 |
|
|
107 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
108 |
|
* tools/formed/formed/model/memory.py: Fixed deleting datasets by |
109 |
|
removing unwanted del method |
110 |
|
* tools/formed/formed/plugins/web/controllers.py: Implemented |
111 |
|
confiration dialogs for create, delete, and select aof datasets. Started to use |
112 |
|
templates as well for larger information units like the dataset summary. |
113 |
|
|
114 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
115 |
|
|
116 |
|
* tools/formed/formed/model/nodecomponents.py: Added a |
117 |
|
method to document to find index of page. |
118 |
|
|
119 |
|
* tools/formed/formed/plugins/web/semantic.py: Added getValue() |
120 |
|
to fetch data from semantic box. |
121 |
|
|
122 |
|
* tools/formed/formed/plugins/web/controllers.py: Added new |
123 |
|
FormData implementation to support DB and semantic box. |
124 |
|
|
125 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
126 |
|
|
127 |
|
* tools/formed/formed/plugins/web/renderer.py: escaped |
128 |
|
error message. |
129 |
|
|
130 |
|
* tools/formed/formed/plugins/web/controllers.py: Don't fetch |
131 |
|
dataset from backend each time a page is up to edit. |
132 |
|
|
133 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
134 |
|
|
135 |
|
* tools/formed/formed/plugins/web/renderer.py: SimplePageRenderer |
136 |
|
returns "Page not found" if given page is None. |
137 |
|
|
138 |
|
* tools/formed/formed/plugins/web/controllers.py: Added checks |
139 |
|
to avoid crashing when ask for a non-existent page. |
140 |
|
|
141 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
142 |
|
|
143 |
|
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
144 |
|
|
145 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
146 |
|
|
147 |
|
* tools/formed/formed/plugins/web/plugin.py: Remove request handlers |
148 |
|
and renderers. |
149 |
|
|
150 |
|
* tools/formed/formed/plugins/web/controllers.py: New. Contains handlers |
151 |
|
and renderers now. TODO: Move renderers to renderer.py |
152 |
|
|
153 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
154 |
|
|
155 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Adopted web template |
156 |
|
and bound in the the new added functions to create, edit, delete and |
157 |
|
show formdata. |
158 |
|
|
159 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
160 |
|
|
161 |
|
* tools/formed/formed/model/memory.py: Removed bisect and use a |
162 |
|
simple linear scan for dataset lookup now. |
163 |
|
|
164 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed various issues |
165 |
|
of different sizes. |
166 |
|
|
167 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
168 |
|
|
169 |
|
* tools/formed/formed/plugins/web/memory.py: Fixed getDataSetById |
170 |
|
fuction |
171 |
|
|
172 |
|
* tools/formed/formed/plugins/web/persistent.py: Added store() method |
173 |
|
to the DataSet interface |
174 |
|
|
175 |
|
* tools/formed/formed/plugins/web/renderer.py: Added handlers and |
176 |
|
renderes for create, update, delete and show actions on formular data. |
177 |
|
|
178 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
179 |
|
|
180 |
|
* tools/formed/formed/plugins/web/server.py: The mapping |
181 |
|
to methods is now driven by regualar expressions and |
182 |
|
a dictionary. Response objects are now able to send |
183 |
|
error codes. |
184 |
|
|
185 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed an issue |
186 |
|
when help in Formdata is None. Moved text for help into |
187 |
|
a top level '''...''' variable. |
188 |
|
|
189 |
|
* tools/formed/test-data/simple.xml: Added test for help. |
190 |
|
|
191 |
|
* tools/formed/formed/plugins/web/help.py: extra None check. |
192 |
|
|
193 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the new |
194 |
|
table driven mapping of reguest handling. TODO: split the |
195 |
|
WebPlugIn.pageHandler() method further to smaller handlers. |
196 |
|
Smaller clean ups and better exception handling. |
197 |
|
|
198 |
|
* tools/formed/formed/plugins/web/cache.py: Report OSErrors |
199 |
|
and do not catch them. |
200 |
|
|
201 |
|
2007-09-04 Torsten Irlaender <[email protected]> |
202 |
|
|
203 |
|
* tools/formed/formed/plugins/web/renderer.py, |
204 |
|
* tools/formed/formed/plugins/web/plugin.py: Added Interface to |
205 |
|
the HelpProvider and inserted help icons to the html output. |
206 |
|
Added decorator for Formelemnts, so textfields, choices etc. are now |
207 |
|
within a <div> tag. |
208 |
|
Modified the error messages. |
209 |
|
|
210 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
211 |
|
|
212 |
|
* tools/formed/formed/plugins/web/cache.py: New. Implements |
213 |
|
the server-side caching more clean. Fixes a bug with |
214 |
|
serving static content. |
215 |
|
|
216 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new cache. |
217 |
|
|
218 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
219 |
|
|
220 |
|
* tools/formed/formed/plugins/web/plugin.py: Set MIME type |
221 |
|
to "application/xhtml+xml" when serving help texts. |
222 |
|
|
223 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
224 |
|
|
225 |
|
* tools/formed/formed/plugins/export/diff.py: New. Exports |
226 |
|
pairwise differences between all modes. |
227 |
|
|
228 |
|
* tools/formed/formed/config.py: Use new export filter. |
229 |
|
|
230 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
231 |
|
|
232 |
|
* tools/formed/formed/plugins/web/help.py: New. Parses an |
233 |
|
XHTML document for id'ed divs and builds a help lookup. |
234 |
|
|
235 |
|
* tools/formed/formed/plugins/web/www/help.tmpl: Template for |
236 |
|
the help content frame. |
237 |
|
|
238 |
|
* tools/formed/formed/plugins/web/www/help.xhtml: Some simple |
239 |
|
help text index. |
240 |
|
|
241 |
|
* tools/formed/formed/plugins/web/plugin.py: Serves the help |
242 |
|
texts now. |
243 |
|
|
244 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
245 |
|
|
246 |
|
* tools/formed/formed/plugins/web/plugin.py: Only visible group |
247 |
|
elements will be rendered in the formular navigation. |
248 |
|
Formular pages in the navigation now have their own css-style |
249 |
|
attributes. |
250 |
|
|
251 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
252 |
|
|
253 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Added div area for page |
254 |
|
errors in template |
255 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed undefined |
256 |
|
pageerrors variable |
257 |
|
|
258 |
|
2007-09-03 Frank Koormann <[email protected]> |
259 |
|
|
260 |
|
* tools/formed/formed/plugins/export/html.py |
261 |
|
(RecursiveExporter): Added annotation to export |
262 |
|
(fillRow()): Renamed old fillNine to this more generic name. |
263 |
|
|
264 |
|
|
265 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
266 |
|
|
267 |
|
* tools/formed/formed/plugins/web/renderer.py: Using the decorator |
268 |
|
from model.misc now. |
269 |
|
|
270 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
271 |
|
|
272 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
273 |
|
'annotation' attribute to node components. This is to |
274 |
|
enable FormEd document authors to add comments to groups |
275 |
|
and fields. |
276 |
|
|
277 |
|
2007-09-03 Frank Koormann <[email protected]> |
278 |
|
|
279 |
|
* tools/formed/formed/model/nodecomponents.py |
280 |
|
(NodeComponent.getParent): New method to get node components parent. |
281 |
|
|
282 |
|
* tools/formed/formed/plugins/export/html.py: Export Choice option |
283 |
|
as simple list instead of collection of bools. |
284 |
|
|
285 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
286 |
|
|
287 |
|
* tools/formed/formed/model/persistent.py: Interfaces to abstract |
288 |
|
from persistent storage details. |
289 |
|
|
290 |
|
* tools/formed/formed/model/memory.py: In core implementation |
291 |
|
of the persistent interfaces. |
292 |
|
|
293 |
|
* tools/formed/formed/main.py: Holds a memory data store now. |
294 |
|
|
295 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
296 |
|
|
297 |
|
* tools/formed/formed/plugins/export/sql.py, |
298 |
|
tools/formed/formed/plugins/export/html.py: Fixed constructor chains |
299 |
|
for FileDialogFilter sub classes. |
300 |
|
|
301 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
302 |
|
|
303 |
|
* tools/formed/formed/model/misc.py: Checking the mode in recursive |
304 |
|
tree traversals is a common task. To ease this a decorator function |
305 |
|
checkMode in union with sub classing ModeChecker can be used. |
306 |
|
To make it work simply subclass from ModeChecker and add the decorator |
307 |
|
to the methods that need mode tracking. Before you start the recursion |
308 |
|
call self.prepareDescent(). |
309 |
|
|
310 |
|
* tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme |
311 |
|
now which replace the old. TODO: Make the web renderer use the new scheme |
312 |
|
too. |
313 |
|
|
314 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
315 |
|
|
316 |
|
* tools/formed/formed/plugins/export/sql.py: Removed needless import. |
317 |
|
|
318 |
|
* tools/formed/formed/plugins/export/html.py: HTML table exporter |
319 |
|
uses new FileDialogFilter base class too. |
320 |
|
|
321 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
322 |
|
|
323 |
|
* tools/formed/formed/plugins/ui/*: New. All file exporters |
324 |
|
need a file dialog. Till now each of them pulled up its |
325 |
|
own. This was silly code replication. Now there is an abstract |
326 |
|
base class 'FileDialogFilter' which implements the common |
327 |
|
behavior. The file exporters should subclass it. |
328 |
|
|
329 |
|
* tools/formed/formed/plugins/export/sql.py: Subclass the SQL |
330 |
|
exporters from the new base class. TODO: Subclass the HTML |
331 |
|
exporter too. |
332 |
|
|
333 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
334 |
|
|
335 |
|
* tools/formed/formed/plugins/export/html.py: Make mode check |
336 |
|
work (again). |
337 |
|
|
338 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
339 |
|
|
340 |
|
* tools/formed/formed/plugins/export/html.py: Rendering of the HTML |
341 |
|
exprt works now in a recursive way. This change was needed because |
342 |
|
the structure of the formedtree has changed to be able to render |
343 |
|
full hirachically document stuctures. (nested lists) |
344 |
|
TODO: Fix modechecking |
345 |
|
|
346 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
347 |
|
|
348 |
|
* tools/formed/formed/plugins/web/plugin.py: Navigation rendering works |
349 |
|
now in recursive way. This change was needed because the structure |
350 |
|
of the formedtree has changed to be able to render full hirachically |
351 |
|
document stuctures. (nested lists) |
352 |
|
|
353 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
354 |
|
|
355 |
|
* tools/formed/formed/model/nodecomponents.py: use discard() |
356 |
|
instead of remove on sets. |
357 |
|
|
358 |
|
* tools/formed/formed/plugins/export/sql.py: Added an |
359 |
|
exporter for table views. |
360 |
|
|
361 |
|
* tools/formed/formed/config.py: Added the new exporter |
362 |
|
to the list of export filters. |
363 |
|
|
364 |
|
2007-08-30 Sascha L. Teichmann <[email protected]> |
365 |
|
|
366 |
|
* tools/formed/formed/model/data.py: Fixed a bug in |
367 |
|
Page.allWidgets() |
368 |
|
|
369 |
|
* tools/formed/formed/plugins/export/sql.py: Added an exporter |
370 |
|
for stored procudeures. |
371 |
|
|
372 |
|
* tools/formed/formed/config.py: Add the new SP exporter. |
373 |
|
|
374 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
375 |
|
|
376 |
|
* tools/formed/formed/plugins/web/plugin.py, |
377 |
|
tools/formed/formed/plugins/web/error_renderer.py: Added interface |
378 |
|
to get the errors for a whole page in te formular. These errors can |
379 |
|
now be displayed on the top of the formular. |
380 |
|
|
381 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
382 |
|
|
383 |
|
* tools/formed/formed/plugins/web/renderer.py: Finished implementation |
384 |
|
of the getFromData interface and prepared the rederer for generating |
385 |
|
nice error messages |
386 |
|
|
387 |
|
2007-08-28 Frank Koormann <[email protected]> |
388 |
|
|
389 |
|
* tools/formed/formed/plugins/export/sql.py |
390 |
|
(SchemaCreator.createSchema, SchemaCreator._createGroup): |
391 |
|
Fixed typo in created DDS (PRIMRAY -> PRIMARY) |
392 |
|
|
393 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
394 |
|
|
395 |
|
* tools/formed/formed/plugins/export/sql.py: Added small helper |
396 |
|
function to generated valid quotes within the sql statements |
397 |
|
|
398 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
399 |
|
|
400 |
|
* tools/formed/formed/plugins/export/sql.py: Added foreign keys |
401 |
|
for repeat tables. |
402 |
|
|
403 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
404 |
|
|
405 |
|
* tools/formed/formed/plugins/export/sql.py: When generating |
406 |
|
an extra table check in a table of same content exists. In |
407 |
|
this case reference the existing table. |
408 |
|
|
409 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
410 |
|
|
411 |
|
* tools/formed/formed/plugins/export/sql.py: Rewritten to produce |
412 |
|
_real_ SQL and respect repeat groups. |
413 |
|
|
414 |
|
* tools/formed/formed/model/data.py: Fixed bug with Group.isRepeat() |
415 |
|
|
416 |
|
* tools/formed/formed/plugins/web/renderer.py: Use "".join([]) |
417 |
|
instead of expensive += string concat in some places. |
418 |
|
|
419 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
420 |
|
|
421 |
|
* tools/formed/formed/model/data.py: Renamed GroupNode.getRepeat() |
422 |
|
to .isRepeat and return a bool. Fixed a bug in Page.allWidgets(). |
423 |
|
|
424 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
425 |
|
|
426 |
|
* tools/formed/plugins/web/renderer.py: Added Formdata interface. |
427 |
|
* tools/formed/model/data.py: Implements Formadata interface to |
428 |
|
textfields. Fieldset generated depends now on the "invisible" |
429 |
|
attribute of the groupnode. Field-label generation slightly changed. |
430 |
|
Added error indication to textfields |
431 |
|
|
432 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
433 |
|
|
434 |
|
* tools/formed/formed/model/data.py, |
435 |
|
tools/formed/formed/io/document.py: Removed support |
436 |
|
of logical groups. |
437 |
|
|
438 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
439 |
|
|
440 |
|
* tools/formed/formed/io/document.py: Avoid saving empty |
441 |
|
attributes. |
442 |
|
|
443 |
|
* tools/formed/test-data/simple.xml: Applied. |
444 |
|
|
445 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
446 |
|
|
447 |
|
* tools/formed/formed/model/data.py: Added 'repeat' and |
448 |
|
'invisible' attributes to group. TODO: remove logical group. |
449 |
|
|
450 |
|
2007-08-27 Torsten Irlaender <[email protected]> |
451 |
|
|
452 |
|
* tools/formed/plugins/web/plugin.py, |
453 |
|
tools/formed/plugins/web/renderer.py: Started to include stylesheet |
454 |
|
depending tags in the html generation. |
455 |
|
|
456 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
457 |
|
|
458 |
|
* tools/formed/formed/model/data.py, |
459 |
|
tools/formed/formed/io/document.py: Added a logical group. |
460 |
|
It has an attribute 'repeat' to indicate that it might |
461 |
|
be worthy an external table in DB schema. |
462 |
|
|
463 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
464 |
|
|
465 |
|
* tools/formed/formed/plugins/web/plugin.py: Support |
466 |
|
serving of static content. |
467 |
|
|
468 |
|
* tools/formed/formed/plugins/web/server.py: Removed |
469 |
|
old send code. |
470 |
|
|
471 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
472 |
|
|
473 |
|
* tools/formed/formed/plugins/web/plugin.py: Use new |
474 |
|
Response object. Fix typo. |
475 |
|
|
476 |
|
* tools/formed/formed/plugins/web/server.py: support |
477 |
|
response object to serve different MIME types. |
478 |
|
|
479 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
480 |
|
|
481 |
|
* tools/formed/formed/plugins/web/plugin.py: Add web.path |
482 |
|
to FORMED environment variable to specify the |
483 |
|
root of the static content. |
484 |
|
|
485 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
486 |
|
|
487 |
|
* tools/formed/formed/model/data.py, |
488 |
|
tools/formed/formed/model/nodecomponents.py: Fixed mode issues. |
489 |
|
|
490 |
|
* tools/formed/formed/plugins/web/www, |
491 |
|
tools/formed/formed/plugins/web/www/main.tmpl: New. Contains |
492 |
|
a template for the HTML output. |
493 |
|
|
494 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixes several smaller |
495 |
|
mode issues. Introduces CSS support. Simplified the action |
496 |
|
handling. |
497 |
|
|
498 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed the |
499 |
|
nagivation code. |
500 |
|
|
501 |
|
* tools/formed/formed/plugins/web/server.py: Added missing import. |
502 |
|
|
503 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
504 |
|
|
505 |
|
* tools/formed/formed/model/data.py: Added missing broadcast |
506 |
|
parameter to setAttribute() of RuleLeaf. |
507 |
|
|
508 |
|
* tools/formed/formed/plugins/web/plugin.py: Factorize |
509 |
|
HTTP server code out to separate module. |
510 |
|
|
511 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed |
512 |
|
needless -1 from pop() |
513 |
|
|
514 |
|
* tools/formed/formed/plugins/web/server.py: New. Contains |
515 |
|
the HTTP server code now. |
516 |
|
|
517 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
518 |
|
|
519 |
|
* tools/formed/test-data/simple.xml: Modified to contain a rule. |
520 |
|
|
521 |
|
* tools/formed/formed/model/expr.py: Added. A simple RPN |
522 |
|
expression evaluator. To avoid the problem of eval()ing |
523 |
|
arbitrary python expressions I've decided to use a very |
524 |
|
basic and limited stack machine to support rule checking. |
525 |
|
|
526 |
|
* tools/formed/formed/model/data.py: Added a RuleLeaf. |
527 |
|
|
528 |
|
* tools/formed/formed/io/document.py: Added factories for rules. |
529 |
|
|
530 |
|
* tools/formed/formed/model/nodecomponents.py: Add a method |
531 |
|
to find all items of a given type in document for a given |
532 |
|
mode. Usefull to find all rules in the tree. |
533 |
|
|
534 |
|
* tools/formed/formed/ui/controls.py: Added a listener mechanism |
535 |
|
to attribute table to report exceptions when setting a value |
536 |
|
from GUI. Useful to report compilation errors when setting |
537 |
|
expr of rule leafs. |
538 |
|
|
539 |
|
* tools/formed/formed/main.py: Added a method to track exceptions |
540 |
|
from the attribute table and pop up dialogs if they occur. |
541 |
|
Added a counter of rule modifications in tree. Useful if you |
542 |
|
want build cached data structures like rule sets and you want |
543 |
|
to know if they are still valid. |
544 |
|
|
545 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
546 |
|
|
547 |
|
* tools/formed/formed/plugins/export/sql.py: Fixed CHECK-constraint |
548 |
|
for checkbox values. (Syntax error). |
549 |
|
|
550 |
|
* tools/formed/formed/plugins/names/filter.py: Fixes in formularname |
551 |
|
generation |
552 |
|
|
553 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
554 |
|
|
555 |
|
* tools/formed/formed/plugins/names/filter.py: Separated Class for |
556 |
|
making the formularnames more database friendly. Added some more |
557 |
|
checks. |
558 |
|
* tools/formed/formed/plugins/export/sql.py: Make use of the fresh |
559 |
|
separated class, and some fixes in sql generation. |
560 |
|
|
561 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
562 |
|
|
563 |
|
* tools/formed/formed/plugins/export/html.py: Print lengths |
564 |
|
of external choice list. |
565 |
|
|
566 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
567 |
|
|
568 |
|
* tools/formed/formed/main.py: Little workaround for |
569 |
|
mode selection if someone adds an removes a mode. |
570 |
|
|
571 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
572 |
|
|
573 |
|
* tools/formed/test-data/simple.xml: Better test case for |
574 |
|
mode depended leaf items. |
575 |
|
|
576 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
577 |
|
to calculate the effective mode of an item. |
578 |
|
|
579 |
|
* tools/formed/formed/plugins/export/html.py: Use effective |
580 |
|
mode. TODO: the 'all' modus return false results sometimes. |
581 |
|
Cause: The modes are only cumulated over time. Removal is |
582 |
|
not done. |
583 |
|
|
584 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
585 |
|
|
586 |
|
* tools/formed/formed/plugins/export/html.py: Dump the items |
587 |
|
of radio groups and choices too. |
588 |
|
|
589 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
590 |
|
|
591 |
|
* tools/formed/formed/plugins/names/filter.py: Modified the renaming |
592 |
|
by formular names to make the naming more database friendly. |
593 |
|
Now only alphanumeric and underscore chars is allowed. |
594 |
|
|
595 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
596 |
|
|
597 |
|
* tools/formed/formed/plugins/export/html.py: Tweaked |
598 |
|
HTML table exporter a bit to be on par with the XSLT |
599 |
|
script. TODO: Dump items in radio and choice groups. |
600 |
|
|
601 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
602 |
|
|
603 |
|
* tools/formed/formed/plugins/names/filter.py: Removed |
604 |
|
HTML and SQL exporters. |
605 |
|
|
606 |
|
* tools/formed/formed/plugins/export, |
607 |
|
tools/formed/formed/plugins/export/__init__.py, |
608 |
|
tools/formed/formed/plugins/export/sql.py, |
609 |
|
tools/formed/formed/plugins/export/html.py: New: Contain |
610 |
|
the HTML and the SQL exporters now. |
611 |
|
|
612 |
|
* tools/formed/formed/config.py: Use exporters from different |
613 |
|
package now. |
614 |
|
|
615 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
616 |
|
|
617 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
618 |
|
pseudo SQL export filters. TODO: Move HTML and SQL filter |
619 |
|
in a new file (formed/plugins/export/htmlexport.py and |
620 |
|
sqlexport.py?) |
621 |
|
|
622 |
|
* tools/formed/formed/config.py: Install the new SQL filter. |
623 |
|
|
624 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
625 |
|
|
626 |
|
* tools/formed/formed/model/nodecomponents.py: Added a depth() |
627 |
|
method to determine the depth of particular tree item. |
628 |
|
|
629 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
630 |
|
HTML export filters. TODO: needs more work. |
631 |
|
|
632 |
|
* tools/formed/formed/config.py: Install the new HTML filter. |
633 |
|
|
634 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
635 |
|
|
636 |
|
* contrib/extract-xfa-fields_and_options.xsl: Added small xsl script |
637 |
|
to extract fields and options in the XFA Data in teh PDF. This |
638 |
|
script might me handy to indicate changes between the different |
639 |
|
formular versions. |
640 |
|
|
641 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
642 |
|
|
643 |
|
* tools/formed/formed/main.py: Add an 'all' mode to |
644 |
|
select all modes. ;-) |
645 |
|
|
646 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
647 |
|
|
648 |
|
* tools/formed/test-data/simple.xml, |
649 |
|
tools/formed/formed/model/data.py, |
650 |
|
tools/formed/formed/plugins/web/plugin.py, |
651 |
|
tools/formed/formed/plugins/web/renderer.py, |
652 |
|
tools/formed/formed/io/document.py, |
653 |
|
tools/formed/formed/main.py: Removed support for switch nodes. |
654 |
|
BEWARE: This breaks compatibility with older documents! |
655 |
|
|
656 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
657 |
|
|
658 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the |
659 |
|
getSelectedMode() from main now. |
660 |
|
|
661 |
|
* tools/formed/formed/main.py: selected mode is now hold |
662 |
|
in main. |
663 |
|
|
664 |
|
* tools/formed/formed/config.py: removed selected mode from |
665 |
|
env configuration. |
666 |
|
|
667 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
668 |
|
|
669 |
|
* tools/formed/formed/ui/controls.py: Attributes in GUI attribute |
670 |
|
table are now alphabetically sorted. |
671 |
|
|
672 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
673 |
|
|
674 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to |
675 |
|
establish the new 'modes' recursively. |
676 |
|
|
677 |
|
* tools/formed/formed/plugins/plugin.py: Pass main instead |
678 |
|
of cfg on plug-in start-up. |
679 |
|
|
680 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new |
681 |
|
'modes' attribute for rendering. |
682 |
|
|
683 |
|
* tools/formed/formed/plugins/web/renderer.py: Use decorators |
684 |
|
to check the new modes. |
685 |
|
|
686 |
|
* tools/formed/formed/main.py: Adjusted to new infrastructure. |
687 |
|
|
688 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
689 |
|
|
690 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
691 |
|
attribute 'modes' to NodeComponents. |
692 |
|
|
693 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
2007-08-22 Sascha L. Teichmann <[email protected]> |
694 |
|
|
695 |
* tools/formed/formed/model/data.py: Small cosmetic cleanups |
* tools/formed/formed/model/data.py: Small cosmetic cleanups |