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