1 |
2007-09-11 Sascha L. Teichmann <[email protected]> |
2 |
|
3 |
* tools/formed/formed/plugins/web/controllers.py: Fix unicode conversion |
4 |
issues with error messages (once again). |
5 |
|
6 |
2007-09-11 Torsten Irlaender <[email protected]> |
7 |
|
8 |
* tools/formed/formed/plugins/web/form_renderer.py, |
9 |
* tools/formed/formed/plugins/web/renderer.py: Added alt tag for |
10 |
icons in error and confirmation dialogs. |
11 |
|
12 |
2007-09-11 Sascha L. Teichmann <[email protected]> |
13 |
|
14 |
* tools/formed/formed/plugins/web/form_renderer.py: Fixed label |
15 |
generation for ints, texts and textareas. Fixed h depths of infos. |
16 |
|
17 |
2007-09-11 Sascha L. Teichmann <[email protected]> |
18 |
|
19 |
* tools/formed/formed/plugins/web/form_renderer.py: Removed |
20 |
debug output for help. |
21 |
|
22 |
* tools/formed/formed/plugins/web/semantic.py: Added forgotten |
23 |
check for bools. |
24 |
|
25 |
* tools/formed/formed/plugins/web/controllers.py: Added correct |
26 |
HTML output of data for bools. |
27 |
|
28 |
2007-09-11 Torsten Irlaender <[email protected]> |
29 |
|
30 |
* tools/formed/formed/plugins/web/form_renderer.py: Changed size of |
31 |
textfields for int values. Changed Label for submitbuttons to |
32 |
"Speichern" |
33 |
|
34 |
* tools/formed/formed/plugins/web/plugin.py, |
35 |
tools/formed/formed/plugins/web/controllers.py: Added new |
36 |
NotImplementedHandler to show up a dummysite for not implemented |
37 |
functions. |
38 |
|
39 |
* tools/formed/formed/plugins/web/renderer.py: Added |
40 |
NotImplementedRenderer. Various small fixes. Mostly renaming the |
41 |
labels of some context menus. Error messages are now generated |
42 |
dynamically depending on num errors. Formular navigation has now |
43 |
colored indication for errors. |
44 |
|
45 |
2007-09-11 Torsten Irlaender <[email protected]> |
46 |
|
47 |
* tools/formed/formed/plugins/web/renderer.py: Implemented "LookAhead" |
48 |
algorithm for the formular navigation to get rid of the problem |
49 |
that some of the items within the navigation are not linked. Now |
50 |
structural group elements are linked with the next page found in the |
51 |
formular structure. |
52 |
|
53 |
2007-09-10 Torsten Irlaender <[email protected]> |
54 |
* tools/formed/formed/plugins/web/form_renderer.py: Changed order of |
55 |
div and formtag. |
56 |
|
57 |
* tools/formed/formed/plugins/web/controllers.py: Added DataSet action |
58 |
menu in the conformation dialog when creating a new dataset. |
59 |
|
60 |
* tools/formed/formed/plugins/web/renderer.py: Fixed error when |
61 |
rendering the default welcome page. Changed rendering of the |
62 |
overview and the digest table of the datasets. Added icon for |
63 |
confirmation dialog, moved the icon in the <h1> tags. |
64 |
|
65 |
2007-09-10 Torsten Irlaender <[email protected]> |
66 |
|
67 |
* tools/formed/formed/plugins/web/form_renderer.py: Some html |
68 |
generation cleanup. Added error icons to formelements |
69 |
|
70 |
* tools/formed/formed/plugins/web/controllers.py: Fixed initialisation |
71 |
of ErrorStatus. Fixed generated of the help tags in the formular |
72 |
|
73 |
* tools/formed/formed/plugins/web/renderer.py: Added error icon for |
74 |
pageerrors. An "!" now indicates errors on pages in the formular |
75 |
navigation. Added new <div> "content" around confirmation dialogss. |
76 |
Links in confimation dialogs are now rendered as buttons. Removed |
77 |
old obsolete OverviewRenderer. |
78 |
|
79 |
2007-09-10 Sascha L. Teichmann <[email protected]> |
80 |
|
81 |
* tools/formed/formed/plugins/web/renderer.py: Highlight selected |
82 |
page in page navigation. |
83 |
|
84 |
2007-09-10 Torsten Irlaender <[email protected]> |
85 |
|
86 |
* tools/formed/formed/plugins/web/controllers.py: Fixed issues on |
87 |
displaying formdata when changing datasets. Loading the right |
88 |
formdata was not handled in a correct way. Hope it is all fixed now. |
89 |
Left some commented code because not all sideeffects of the changes |
90 |
are tested yet. |
91 |
|
92 |
* tools/formed/formed/plugins/web/renderer.py: DataSetDigestRenderer |
93 |
now uses the correct data out of the formdata. |
94 |
|
95 |
2007-09-10 Sascha L. Teichmann <[email protected]> |
96 |
|
97 |
* tools/formed/formed/plugins/web/controllers.py: Pretty |
98 |
print format data (dates e.g) |
99 |
|
100 |
2007-09-10 Sascha L. Teichmann <[email protected]> |
101 |
|
102 |
* tools/formed/formed/plugins/web/controllers.py: Modified |
103 |
ErrorStats a bit to avoid mysterious extra error on page. |
104 |
No clue why this works. |
105 |
|
106 |
2007-09-10 Sascha L. Teichmann <[email protected]> |
107 |
|
108 |
* tools/formed/formed/plugins/web/form_renderer.py: Fixed value |
109 |
problem with radio groups, too. |
110 |
|
111 |
2007-09-10 Torsten Irlaender <[email protected]> |
112 |
* tools/formed/formed/plugins/web/controllers.py: Sessions are now |
113 |
really removed when deleting a dataset. |
114 |
|
115 |
2007-09-10 Torsten Irlaender <[email protected]> |
116 |
|
117 |
* tools/formed/formed/plugins/web/controllers.py: Added new Class |
118 |
ErrorStats which provides Information on remaining errors per page. |
119 |
|
120 |
* tools/formed/formed/plugins/web/renderers.py: Finished movement of |
121 |
the renderer methods from controllers.py to renderers.py. |
122 |
|
123 |
* tools/formed/formed/plugins/web/plugin.py: Removed render_session |
124 |
handlers |
125 |
|
126 |
2007-09-10 Sascha L. Teichmann <[email protected]> |
127 |
|
128 |
* tools/formed/formed/plugins/web/form_renderer.py: values for |
129 |
choices are generated from the document tree now. This brings |
130 |
the state storage of select boxes in HTML to live. |
131 |
|
132 |
2007-09-09 Sascha L. Teichmann <[email protected]> |
133 |
|
134 |
* tools/formed/formed/plugins/web/semantic.py: Fixed problems with |
135 |
range checking of integers. |
136 |
|
137 |
* tools/formed/formed/plugins/web/controllers.py: Added class |
138 |
ErrorItem to track errors. They are stored in the session. |
139 |
|
140 |
2007-09-09 Sascha L. Teichmann <[email protected]> |
141 |
|
142 |
* tools/formed/formed/model/nodecomponents.py: Fixed returning |
143 |
wrong index in Document.indexOfcomponentByClassAndName. |
144 |
|
145 |
* tools/formed/formed/plugins/web/form_renderer.py: 'error' was |
146 |
written 'errot' in renderer for textareas. |
147 |
|
148 |
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
149 |
|
150 |
2007-09-09 Sascha L. Teichmann <[email protected]> |
151 |
|
152 |
* tools/formed/formed/plugins/web/help.py: Added a 'hasHelp' |
153 |
method. Could be cheaper for some implementations of help. |
154 |
|
155 |
* tools/formed/formed/plugins/web/form_renderer.py: Modified |
156 |
FormData to have distinct getData(), getHelp() and getError() |
157 |
methods. Various bug fixes. |
158 |
|
159 |
* tools/formed/formed/plugins/web/controllers.py: Implements the |
160 |
new FormData (trivial by now). |
161 |
|
162 |
* tools/formed/formed/plugins/web/renderer.py: New FormData and |
163 |
some bug fixes. |
164 |
|
165 |
2007-09-09 Sascha L. Teichmann <[email protected]> |
166 |
|
167 |
* tools/formed/formed/model/memory.py, |
168 |
tools/formed/formed/model/persistent.py: Add a getValue() method |
169 |
to dataset abstraction. This is a bit of a workaround to bring |
170 |
global access across pages for rule checking to work. |
171 |
|
172 |
* tools/formed/formed/model/data.py: Fixed: When setting a new expression |
173 |
the compiled version was not stored in the RuleLeaf. |
174 |
|
175 |
* tools/formed/formed/model/expr.py: shlex lexer does not like unicode. |
176 |
convert the expression string to ascii for compilation. |
177 |
|
178 |
* tools/formed/formed/plugins/web/semantic.py: Remove the 'box' because |
179 |
valid data is stored to the dataset immediately now. Fixed a bug |
180 |
with integer handler. |
181 |
|
182 |
* tools/formed/formed/plugins/web/controllers.py: Removed the semantic 'box' |
183 |
stuff. When a submit is done extract the rules from the tree document |
184 |
that are effected by the modified variables and check them. |
185 |
|
186 |
* tools/formed/formed/plugins/web/renderer.py: Fixed exception handling |
187 |
when dealing with templates. |
188 |
|
189 |
2007-09-07 Torsten Irlaender <[email protected]> |
190 |
* tools/formed/formed/plugins/web/controllers.py, |
191 |
tools/formed/formed/plugins/web/renderer.py: Moved more render |
192 |
functions into renderer.py. New render classes are: |
193 |
DataSetDigestRenderer, DataSetNavigationRenderer, |
194 |
DataSetFormularRenderer, ConfirmationDialogRenderer |
195 |
|
196 |
Note: The new methods are only called from selected handlers. Other |
197 |
handlers call the renderes in the old way. |
198 |
|
199 |
2007-09-07 Torsten Irlaender <[email protected]> |
200 |
* tools/formed/formed/plugins/web/form_renderer.py: Renamed |
201 |
renderer.py to form_renderer.py. This file will contain formular |
202 |
specfic render methods in the future. |
203 |
* tools/formed/formed/plugins/web/renderer.py: Added new renderer.py |
204 |
which will contain general render methods. |
205 |
* tools/formed/formed/plugins/web/controllers.py: Began to move all |
206 |
rendering into renderer.py or form_renderer.py. This file will only |
207 |
contain teh handlers in the future. |
208 |
|
209 |
2007-09-07 Torsten Irlaender <[email protected]> |
210 |
* tools/formed/formed/plugins/web/renderer.py, |
211 |
tools/formed/formed/plugins/web/controller.py: |
212 |
Renderes now get an instance of the formdata object to provide |
213 |
access the data needed to render various infoboxes etc. Handler |
214 |
instanciate the formdata. |
215 |
|
216 |
2007-09-06 Torsten Irlaender <[email protected]> |
217 |
* tools/formed/formed/plugins/web/renderer.py: Mainly tried to get the |
218 |
getFormData interface to work. Added two small semantic fixes, but |
219 |
did not manage to get it up. Need to exime this a little bit more |
220 |
* tools/formed/formed/plugins/web/controllers.py: Put <div> tags |
221 |
around the menus on the right side to be able to assign different |
222 |
styles. Added dataset actions while editing a dataset. |
223 |
|
224 |
2007-09-05 Torsten Irlaender <[email protected]> |
225 |
* tools/formed/formed/model/memory.py: Fixed deleting datasets by |
226 |
removing unwanted del method |
227 |
* tools/formed/formed/plugins/web/controllers.py: Implemented |
228 |
confiration dialogs for create, delete, and select aof datasets. Started to use |
229 |
templates as well for larger information units like the dataset summary. |
230 |
|
231 |
2007-09-05 Sascha L. Teichmann <[email protected]> |
232 |
|
233 |
* tools/formed/formed/model/nodecomponents.py: Added a |
234 |
method to document to find index of page. |
235 |
|
236 |
* tools/formed/formed/plugins/web/semantic.py: Added getValue() |
237 |
to fetch data from semantic box. |
238 |
|
239 |
* tools/formed/formed/plugins/web/controllers.py: Added new |
240 |
FormData implementation to support DB and semantic box. |
241 |
|
242 |
2007-09-05 Sascha L. Teichmann <[email protected]> |
243 |
|
244 |
* tools/formed/formed/plugins/web/renderer.py: escaped |
245 |
error message. |
246 |
|
247 |
* tools/formed/formed/plugins/web/controllers.py: Don't fetch |
248 |
dataset from backend each time a page is up to edit. |
249 |
|
250 |
2007-09-05 Sascha L. Teichmann <[email protected]> |
251 |
|
252 |
* tools/formed/formed/plugins/web/renderer.py: SimplePageRenderer |
253 |
returns "Page not found" if given page is None. |
254 |
|
255 |
* tools/formed/formed/plugins/web/controllers.py: Added checks |
256 |
to avoid crashing when ask for a non-existent page. |
257 |
|
258 |
2007-09-05 Sascha L. Teichmann <[email protected]> |
259 |
|
260 |
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
261 |
|
262 |
2007-09-05 Sascha L. Teichmann <[email protected]> |
263 |
|
264 |
* tools/formed/formed/plugins/web/plugin.py: Remove request handlers |
265 |
and renderers. |
266 |
|
267 |
* tools/formed/formed/plugins/web/controllers.py: New. Contains handlers |
268 |
and renderers now. TODO: Move renderers to renderer.py |
269 |
|
270 |
2007-09-05 Torsten Irlaender <[email protected]> |
271 |
|
272 |
* tools/formed/formed/plugins/web/www/main.tmpl: Adopted web template |
273 |
and bound in the the new added functions to create, edit, delete and |
274 |
show formdata. |
275 |
|
276 |
2007-09-05 Sascha L. Teichmann <[email protected]> |
277 |
|
278 |
* tools/formed/formed/model/memory.py: Removed bisect and use a |
279 |
simple linear scan for dataset lookup now. |
280 |
|
281 |
* tools/formed/formed/plugins/web/plugin.py: Fixed various issues |
282 |
of different sizes. |
283 |
|
284 |
2007-09-05 Torsten Irlaender <[email protected]> |
285 |
|
286 |
* tools/formed/formed/plugins/web/memory.py: Fixed getDataSetById |
287 |
fuction |
288 |
|
289 |
* tools/formed/formed/plugins/web/persistent.py: Added store() method |
290 |
to the DataSet interface |
291 |
|
292 |
* tools/formed/formed/plugins/web/renderer.py: Added handlers and |
293 |
renderes for create, update, delete and show actions on formular data. |
294 |
|
295 |
2007-09-04 Sascha L. Teichmann <[email protected]> |
296 |
|
297 |
* tools/formed/formed/plugins/web/server.py: The mapping |
298 |
to methods is now driven by regualar expressions and |
299 |
a dictionary. Response objects are now able to send |
300 |
error codes. |
301 |
|
302 |
* tools/formed/formed/plugins/web/renderer.py: Fixed an issue |
303 |
when help in Formdata is None. Moved text for help into |
304 |
a top level '''...''' variable. |
305 |
|
306 |
* tools/formed/test-data/simple.xml: Added test for help. |
307 |
|
308 |
* tools/formed/formed/plugins/web/help.py: extra None check. |
309 |
|
310 |
* tools/formed/formed/plugins/web/plugin.py: Uses the new |
311 |
table driven mapping of reguest handling. TODO: split the |
312 |
WebPlugIn.pageHandler() method further to smaller handlers. |
313 |
Smaller clean ups and better exception handling. |
314 |
|
315 |
* tools/formed/formed/plugins/web/cache.py: Report OSErrors |
316 |
and do not catch them. |
317 |
|
318 |
2007-09-04 Torsten Irlaender <[email protected]> |
319 |
|
320 |
* tools/formed/formed/plugins/web/renderer.py, |
321 |
* tools/formed/formed/plugins/web/plugin.py: Added Interface to |
322 |
the HelpProvider and inserted help icons to the html output. |
323 |
Added decorator for Formelemnts, so textfields, choices etc. are now |
324 |
within a <div> tag. |
325 |
Modified the error messages. |
326 |
|
327 |
2007-09-04 Sascha L. Teichmann <[email protected]> |
328 |
|
329 |
* tools/formed/formed/plugins/web/cache.py: New. Implements |
330 |
the server-side caching more clean. Fixes a bug with |
331 |
serving static content. |
332 |
|
333 |
* tools/formed/formed/plugins/web/plugin.py: Use the new cache. |
334 |
|
335 |
2007-09-04 Sascha L. Teichmann <[email protected]> |
336 |
|
337 |
* tools/formed/formed/plugins/web/plugin.py: Set MIME type |
338 |
to "application/xhtml+xml" when serving help texts. |
339 |
|
340 |
2007-09-03 Sascha L. Teichmann <[email protected]> |
341 |
|
342 |
* tools/formed/formed/plugins/export/diff.py: New. Exports |
343 |
pairwise differences between all modes. |
344 |
|
345 |
* tools/formed/formed/config.py: Use new export filter. |
346 |
|
347 |
2007-09-03 Sascha L. Teichmann <[email protected]> |
348 |
|
349 |
* tools/formed/formed/plugins/web/help.py: New. Parses an |
350 |
XHTML document for id'ed divs and builds a help lookup. |
351 |
|
352 |
* tools/formed/formed/plugins/web/www/help.tmpl: Template for |
353 |
the help content frame. |
354 |
|
355 |
* tools/formed/formed/plugins/web/www/help.xhtml: Some simple |
356 |
help text index. |
357 |
|
358 |
* tools/formed/formed/plugins/web/plugin.py: Serves the help |
359 |
texts now. |
360 |
|
361 |
2007-09-03 Torsten Irlaender <[email protected]> |
362 |
|
363 |
* tools/formed/formed/plugins/web/plugin.py: Only visible group |
364 |
elements will be rendered in the formular navigation. |
365 |
Formular pages in the navigation now have their own css-style |
366 |
attributes. |
367 |
|
368 |
2007-09-03 Torsten Irlaender <[email protected]> |
369 |
|
370 |
* tools/formed/formed/plugins/web/www/main.tmpl: Added div area for page |
371 |
errors in template |
372 |
* tools/formed/formed/plugins/web/plugin.py: Fixed undefined |
373 |
pageerrors variable |
374 |
|
375 |
2007-09-03 Frank Koormann <[email protected]> |
376 |
|
377 |
* tools/formed/formed/plugins/export/html.py |
378 |
(RecursiveExporter): Added annotation to export |
379 |
(fillRow()): Renamed old fillNine to this more generic name. |
380 |
|
381 |
|
382 |
2007-09-03 Sascha L. Teichmann <[email protected]> |
383 |
|
384 |
* tools/formed/formed/plugins/web/renderer.py: Using the decorator |
385 |
from model.misc now. |
386 |
|
387 |
2007-09-03 Sascha L. Teichmann <[email protected]> |
388 |
|
389 |
* tools/formed/formed/model/nodecomponents.py: Added an |
390 |
'annotation' attribute to node components. This is to |
391 |
enable FormEd document authors to add comments to groups |
392 |
and fields. |
393 |
|
394 |
2007-09-03 Frank Koormann <[email protected]> |
395 |
|
396 |
* tools/formed/formed/model/nodecomponents.py |
397 |
(NodeComponent.getParent): New method to get node components parent. |
398 |
|
399 |
* tools/formed/formed/plugins/export/html.py: Export Choice option |
400 |
as simple list instead of collection of bools. |
401 |
|
402 |
2007-09-02 Sascha L. Teichmann <[email protected]> |
403 |
|
404 |
* tools/formed/formed/model/persistent.py: Interfaces to abstract |
405 |
from persistent storage details. |
406 |
|
407 |
* tools/formed/formed/model/memory.py: In core implementation |
408 |
of the persistent interfaces. |
409 |
|
410 |
* tools/formed/formed/main.py: Holds a memory data store now. |
411 |
|
412 |
2007-09-02 Sascha L. Teichmann <[email protected]> |
413 |
|
414 |
* tools/formed/formed/plugins/export/sql.py, |
415 |
tools/formed/formed/plugins/export/html.py: Fixed constructor chains |
416 |
for FileDialogFilter sub classes. |
417 |
|
418 |
2007-09-02 Sascha L. Teichmann <[email protected]> |
419 |
|
420 |
* tools/formed/formed/model/misc.py: Checking the mode in recursive |
421 |
tree traversals is a common task. To ease this a decorator function |
422 |
checkMode in union with sub classing ModeChecker can be used. |
423 |
To make it work simply subclass from ModeChecker and add the decorator |
424 |
to the methods that need mode tracking. Before you start the recursion |
425 |
call self.prepareDescent(). |
426 |
|
427 |
* tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme |
428 |
now which replace the old. TODO: Make the web renderer use the new scheme |
429 |
too. |
430 |
|
431 |
2007-09-02 Sascha L. Teichmann <[email protected]> |
432 |
|
433 |
* tools/formed/formed/plugins/export/sql.py: Removed needless import. |
434 |
|
435 |
* tools/formed/formed/plugins/export/html.py: HTML table exporter |
436 |
uses new FileDialogFilter base class too. |
437 |
|
438 |
2007-09-02 Sascha L. Teichmann <[email protected]> |
439 |
|
440 |
* tools/formed/formed/plugins/ui/*: New. All file exporters |
441 |
need a file dialog. Till now each of them pulled up its |
442 |
own. This was silly code replication. Now there is an abstract |
443 |
base class 'FileDialogFilter' which implements the common |
444 |
behavior. The file exporters should subclass it. |
445 |
|
446 |
* tools/formed/formed/plugins/export/sql.py: Subclass the SQL |
447 |
exporters from the new base class. TODO: Subclass the HTML |
448 |
exporter too. |
449 |
|
450 |
2007-08-31 Sascha L. Teichmann <[email protected]> |
451 |
|
452 |
* tools/formed/formed/plugins/export/html.py: Make mode check |
453 |
work (again). |
454 |
|
455 |
2007-08-31 Torsten Irlaender <[email protected]> |
456 |
|
457 |
* tools/formed/formed/plugins/export/html.py: Rendering of the HTML |
458 |
exprt works now in a recursive way. This change was needed because |
459 |
the structure of the formedtree has changed to be able to render |
460 |
full hirachically document stuctures. (nested lists) |
461 |
TODO: Fix modechecking |
462 |
|
463 |
2007-08-31 Torsten Irlaender <[email protected]> |
464 |
|
465 |
* tools/formed/formed/plugins/web/plugin.py: Navigation rendering works |
466 |
now in recursive way. This change was needed because the structure |
467 |
of the formedtree has changed to be able to render full hirachically |
468 |
document stuctures. (nested lists) |
469 |
|
470 |
2007-08-31 Sascha L. Teichmann <[email protected]> |
471 |
|
472 |
* tools/formed/formed/model/nodecomponents.py: use discard() |
473 |
instead of remove on sets. |
474 |
|
475 |
* tools/formed/formed/plugins/export/sql.py: Added an |
476 |
exporter for table views. |
477 |
|
478 |
* tools/formed/formed/config.py: Added the new exporter |
479 |
to the list of export filters. |
480 |
|
481 |
2007-08-30 Sascha L. Teichmann <[email protected]> |
482 |
|
483 |
* tools/formed/formed/model/data.py: Fixed a bug in |
484 |
Page.allWidgets() |
485 |
|
486 |
* tools/formed/formed/plugins/export/sql.py: Added an exporter |
487 |
for stored procudeures. |
488 |
|
489 |
* tools/formed/formed/config.py: Add the new SP exporter. |
490 |
|
491 |
2007-08-29 Torsten Irlaender <[email protected]> |
492 |
|
493 |
* tools/formed/formed/plugins/web/plugin.py, |
494 |
tools/formed/formed/plugins/web/error_renderer.py: Added interface |
495 |
to get the errors for a whole page in te formular. These errors can |
496 |
now be displayed on the top of the formular. |
497 |
|
498 |
2007-08-29 Torsten Irlaender <[email protected]> |
499 |
|
500 |
* tools/formed/formed/plugins/web/renderer.py: Finished implementation |
501 |
of the getFromData interface and prepared the rederer for generating |
502 |
nice error messages |
503 |
|
504 |
2007-08-28 Frank Koormann <[email protected]> |
505 |
|
506 |
* tools/formed/formed/plugins/export/sql.py |
507 |
(SchemaCreator.createSchema, SchemaCreator._createGroup): |
508 |
Fixed typo in created DDS (PRIMRAY -> PRIMARY) |
509 |
|
510 |
2007-08-28 Torsten Irlaender <[email protected]> |
511 |
|
512 |
* tools/formed/formed/plugins/export/sql.py: Added small helper |
513 |
function to generated valid quotes within the sql statements |
514 |
|
515 |
2007-08-29 Sascha L. Teichmann <[email protected]> |
516 |
|
517 |
* tools/formed/formed/plugins/export/sql.py: Added foreign keys |
518 |
for repeat tables. |
519 |
|
520 |
2007-08-29 Sascha L. Teichmann <[email protected]> |
521 |
|
522 |
* tools/formed/formed/plugins/export/sql.py: When generating |
523 |
an extra table check in a table of same content exists. In |
524 |
this case reference the existing table. |
525 |
|
526 |
2007-08-29 Sascha L. Teichmann <[email protected]> |
527 |
|
528 |
* tools/formed/formed/plugins/export/sql.py: Rewritten to produce |
529 |
_real_ SQL and respect repeat groups. |
530 |
|
531 |
* tools/formed/formed/model/data.py: Fixed bug with Group.isRepeat() |
532 |
|
533 |
* tools/formed/formed/plugins/web/renderer.py: Use "".join([]) |
534 |
instead of expensive += string concat in some places. |
535 |
|
536 |
2007-08-29 Sascha L. Teichmann <[email protected]> |
537 |
|
538 |
* tools/formed/formed/model/data.py: Renamed GroupNode.getRepeat() |
539 |
to .isRepeat and return a bool. Fixed a bug in Page.allWidgets(). |
540 |
|
541 |
2007-08-28 Torsten Irlaender <[email protected]> |
542 |
|
543 |
* tools/formed/plugins/web/renderer.py: Added Formdata interface. |
544 |
* tools/formed/model/data.py: Implements Formadata interface to |
545 |
textfields. Fieldset generated depends now on the "invisible" |
546 |
attribute of the groupnode. Field-label generation slightly changed. |
547 |
Added error indication to textfields |
548 |
|
549 |
2007-08-28 Sascha L. Teichmann <[email protected]> |
550 |
|
551 |
* tools/formed/formed/model/data.py, |
552 |
tools/formed/formed/io/document.py: Removed support |
553 |
of logical groups. |
554 |
|
555 |
2007-08-28 Sascha L. Teichmann <[email protected]> |
556 |
|
557 |
* tools/formed/formed/io/document.py: Avoid saving empty |
558 |
attributes. |
559 |
|
560 |
* tools/formed/test-data/simple.xml: Applied. |
561 |
|
562 |
2007-08-28 Sascha L. Teichmann <[email protected]> |
563 |
|
564 |
* tools/formed/formed/model/data.py: Added 'repeat' and |
565 |
'invisible' attributes to group. TODO: remove logical group. |
566 |
|
567 |
2007-08-27 Torsten Irlaender <[email protected]> |
568 |
|
569 |
* tools/formed/plugins/web/plugin.py, |
570 |
tools/formed/plugins/web/renderer.py: Started to include stylesheet |
571 |
depending tags in the html generation. |
572 |
|
573 |
2007-08-27 Sascha L. Teichmann <[email protected]> |
574 |
|
575 |
* tools/formed/formed/model/data.py, |
576 |
tools/formed/formed/io/document.py: Added a logical group. |
577 |
It has an attribute 'repeat' to indicate that it might |
578 |
be worthy an external table in DB schema. |
579 |
|
580 |
2007-08-27 Sascha L. Teichmann <[email protected]> |
581 |
|
582 |
* tools/formed/formed/plugins/web/plugin.py: Support |
583 |
serving of static content. |
584 |
|
585 |
* tools/formed/formed/plugins/web/server.py: Removed |
586 |
old send code. |
587 |
|
588 |
2007-08-27 Sascha L. Teichmann <[email protected]> |
589 |
|
590 |
* tools/formed/formed/plugins/web/plugin.py: Use new |
591 |
Response object. Fix typo. |
592 |
|
593 |
* tools/formed/formed/plugins/web/server.py: support |
594 |
response object to serve different MIME types. |
595 |
|
596 |
2007-08-27 Sascha L. Teichmann <[email protected]> |
597 |
|
598 |
* tools/formed/formed/plugins/web/plugin.py: Add web.path |
599 |
to FORMED environment variable to specify the |
600 |
root of the static content. |
601 |
|
602 |
2007-08-26 Sascha L. Teichmann <[email protected]> |
603 |
|
604 |
* tools/formed/formed/model/data.py, |
605 |
tools/formed/formed/model/nodecomponents.py: Fixed mode issues. |
606 |
|
607 |
* tools/formed/formed/plugins/web/www, |
608 |
tools/formed/formed/plugins/web/www/main.tmpl: New. Contains |
609 |
a template for the HTML output. |
610 |
|
611 |
* tools/formed/formed/plugins/web/plugin.py: Fixes several smaller |
612 |
mode issues. Introduces CSS support. Simplified the action |
613 |
handling. |
614 |
|
615 |
* tools/formed/formed/plugins/web/renderer.py: Removed the |
616 |
nagivation code. |
617 |
|
618 |
* tools/formed/formed/plugins/web/server.py: Added missing import. |
619 |
|
620 |
2007-08-26 Sascha L. Teichmann <[email protected]> |
621 |
|
622 |
* tools/formed/formed/model/data.py: Added missing broadcast |
623 |
parameter to setAttribute() of RuleLeaf. |
624 |
|
625 |
* tools/formed/formed/plugins/web/plugin.py: Factorize |
626 |
HTTP server code out to separate module. |
627 |
|
628 |
* tools/formed/formed/plugins/web/renderer.py: Removed |
629 |
needless -1 from pop() |
630 |
|
631 |
* tools/formed/formed/plugins/web/server.py: New. Contains |
632 |
the HTTP server code now. |
633 |
|
634 |
2007-08-26 Sascha L. Teichmann <[email protected]> |
635 |
|
636 |
* tools/formed/test-data/simple.xml: Modified to contain a rule. |
637 |
|
638 |
* tools/formed/formed/model/expr.py: Added. A simple RPN |
639 |
expression evaluator. To avoid the problem of eval()ing |
640 |
arbitrary python expressions I've decided to use a very |
641 |
basic and limited stack machine to support rule checking. |
642 |
|
643 |
* tools/formed/formed/model/data.py: Added a RuleLeaf. |
644 |
|
645 |
* tools/formed/formed/io/document.py: Added factories for rules. |
646 |
|
647 |
* tools/formed/formed/model/nodecomponents.py: Add a method |
648 |
to find all items of a given type in document for a given |
649 |
mode. Usefull to find all rules in the tree. |
650 |
|
651 |
* tools/formed/formed/ui/controls.py: Added a listener mechanism |
652 |
to attribute table to report exceptions when setting a value |
653 |
from GUI. Useful to report compilation errors when setting |
654 |
expr of rule leafs. |
655 |
|
656 |
* tools/formed/formed/main.py: Added a method to track exceptions |
657 |
from the attribute table and pop up dialogs if they occur. |
658 |
Added a counter of rule modifications in tree. Useful if you |
659 |
want build cached data structures like rule sets and you want |
660 |
to know if they are still valid. |
661 |
|
662 |
2007-08-24 Torsten Irlaender <[email protected]> |
663 |
|
664 |
* tools/formed/formed/plugins/export/sql.py: Fixed CHECK-constraint |
665 |
for checkbox values. (Syntax error). |
666 |
|
667 |
* tools/formed/formed/plugins/names/filter.py: Fixes in formularname |
668 |
generation |
669 |
|
670 |
2007-08-24 Torsten Irlaender <[email protected]> |
671 |
|
672 |
* tools/formed/formed/plugins/names/filter.py: Separated Class for |
673 |
making the formularnames more database friendly. Added some more |
674 |
checks. |
675 |
* tools/formed/formed/plugins/export/sql.py: Make use of the fresh |
676 |
separated class, and some fixes in sql generation. |
677 |
|
678 |
2007-08-24 Sascha L. Teichmann <[email protected]> |
679 |
|
680 |
* tools/formed/formed/plugins/export/html.py: Print lengths |
681 |
of external choice list. |
682 |
|
683 |
2007-08-24 Sascha L. Teichmann <[email protected]> |
684 |
|
685 |
* tools/formed/formed/main.py: Little workaround for |
686 |
mode selection if someone adds an removes a mode. |
687 |
|
688 |
2007-08-24 Sascha L. Teichmann <[email protected]> |
689 |
|
690 |
* tools/formed/test-data/simple.xml: Better test case for |
691 |
mode depended leaf items. |
692 |
|
693 |
* tools/formed/formed/model/nodecomponents.py: Added a method |
694 |
to calculate the effective mode of an item. |
695 |
|
696 |
* tools/formed/formed/plugins/export/html.py: Use effective |
697 |
mode. TODO: the 'all' modus return false results sometimes. |
698 |
Cause: The modes are only cumulated over time. Removal is |
699 |
not done. |
700 |
|
701 |
2007-08-24 Sascha L. Teichmann <[email protected]> |
702 |
|
703 |
* tools/formed/formed/plugins/export/html.py: Dump the items |
704 |
of radio groups and choices too. |
705 |
|
706 |
2007-08-24 Torsten Irlaender <[email protected]> |
707 |
|
708 |
* tools/formed/formed/plugins/names/filter.py: Modified the renaming |
709 |
by formular names to make the naming more database friendly. |
710 |
Now only alphanumeric and underscore chars is allowed. |
711 |
|
712 |
2007-08-24 Sascha L. Teichmann <[email protected]> |
713 |
|
714 |
* tools/formed/formed/plugins/export/html.py: Tweaked |
715 |
HTML table exporter a bit to be on par with the XSLT |
716 |
script. TODO: Dump items in radio and choice groups. |
717 |
|
718 |
2007-08-23 Sascha L. Teichmann <[email protected]> |
719 |
|
720 |
* tools/formed/formed/plugins/names/filter.py: Removed |
721 |
HTML and SQL exporters. |
722 |
|
723 |
* tools/formed/formed/plugins/export, |
724 |
tools/formed/formed/plugins/export/__init__.py, |
725 |
tools/formed/formed/plugins/export/sql.py, |
726 |
tools/formed/formed/plugins/export/html.py: New: Contain |
727 |
the HTML and the SQL exporters now. |
728 |
|
729 |
* tools/formed/formed/config.py: Use exporters from different |
730 |
package now. |
731 |
|
732 |
2007-08-23 Torsten Irlaender <[email protected]> |
733 |
|
734 |
* tools/formed/formed/plugins/names/filter.py: Added an |
735 |
pseudo SQL export filters. TODO: Move HTML and SQL filter |
736 |
in a new file (formed/plugins/export/htmlexport.py and |
737 |
sqlexport.py?) |
738 |
|
739 |
* tools/formed/formed/config.py: Install the new SQL filter. |
740 |
|
741 |
2007-08-23 Sascha L. Teichmann <[email protected]> |
742 |
|
743 |
* tools/formed/formed/model/nodecomponents.py: Added a depth() |
744 |
method to determine the depth of particular tree item. |
745 |
|
746 |
* tools/formed/formed/plugins/names/filter.py: Added an |
747 |
HTML export filters. TODO: needs more work. |
748 |
|
749 |
* tools/formed/formed/config.py: Install the new HTML filter. |
750 |
|
751 |
2007-08-23 Torsten Irlaender <[email protected]> |
752 |
|
753 |
* contrib/extract-xfa-fields_and_options.xsl: Added small xsl script |
754 |
to extract fields and options in the XFA Data in teh PDF. This |
755 |
script might me handy to indicate changes between the different |
756 |
formular versions. |
757 |
|
758 |
2007-08-23 Sascha L. Teichmann <[email protected]> |
759 |
|
760 |
* tools/formed/formed/main.py: Add an 'all' mode to |
761 |
select all modes. ;-) |
762 |
|
763 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
764 |
|
765 |
* tools/formed/test-data/simple.xml, |
766 |
tools/formed/formed/model/data.py, |
767 |
tools/formed/formed/plugins/web/plugin.py, |
768 |
tools/formed/formed/plugins/web/renderer.py, |
769 |
tools/formed/formed/io/document.py, |
770 |
tools/formed/formed/main.py: Removed support for switch nodes. |
771 |
BEWARE: This breaks compatibility with older documents! |
772 |
|
773 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
774 |
|
775 |
* tools/formed/formed/plugins/web/plugin.py: Uses the |
776 |
getSelectedMode() from main now. |
777 |
|
778 |
* tools/formed/formed/main.py: selected mode is now hold |
779 |
in main. |
780 |
|
781 |
* tools/formed/formed/config.py: removed selected mode from |
782 |
env configuration. |
783 |
|
784 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
785 |
|
786 |
* tools/formed/formed/ui/controls.py: Attributes in GUI attribute |
787 |
table are now alphabetically sorted. |
788 |
|
789 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
790 |
|
791 |
* tools/formed/formed/model/nodecomponents.py: Added code to |
792 |
establish the new 'modes' recursively. |
793 |
|
794 |
* tools/formed/formed/plugins/plugin.py: Pass main instead |
795 |
of cfg on plug-in start-up. |
796 |
|
797 |
* tools/formed/formed/plugins/web/plugin.py: Use the new |
798 |
'modes' attribute for rendering. |
799 |
|
800 |
* tools/formed/formed/plugins/web/renderer.py: Use decorators |
801 |
to check the new modes. |
802 |
|
803 |
* tools/formed/formed/main.py: Adjusted to new infrastructure. |
804 |
|
805 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
806 |
|
807 |
* tools/formed/formed/model/nodecomponents.py: Added an |
808 |
attribute 'modes' to NodeComponents. |
809 |
|
810 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
811 |
|
812 |
* tools/formed/formed/model/data.py: Small cosmetic cleanups |
813 |
|
814 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
815 |
|
816 |
* tools/formed/formed/plugins/web/renderer.py: Another fix |
817 |
for the hidden field. Argh! |
818 |
|
819 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
820 |
|
821 |
* tools/formed/formed/plugins/web/renderer.py: Fixed double |
822 |
generation of hidden page field. |
823 |
|
824 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
825 |
|
826 |
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
827 |
checks for radio groups. |
828 |
|
829 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
830 |
|
831 |
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
832 |
checks for choices. |
833 |
|
834 |
2007-08-21 Frank Koormann <[email protected]> |
835 |
|
836 |
* contrib/convert-formedtree2html.xsl: Display switch nodes as |
837 |
alternatives. |
838 |
|
839 |
2007-08-21 Frank Koormann <[email protected]> |
840 |
|
841 |
* contrib/convert-formedtree2html.xsl: |
842 |
Replace technical types with readable descriptions |
843 |
|
844 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
845 |
|
846 |
* tools/formed/formed/plugins/web/plugin.py: Fix a few smaller |
847 |
issues. 'action' looks for all widgets on a page now, goes |
848 |
through all passed parameters, tries to match them with the |
849 |
widgets of the page and put them into the semantic box. |
850 |
Afterwards a list of untouched page parameters are left |
851 |
which will be deleted from the semantic box. |
852 |
|
853 |
* tools/formed/formed/plugins/web/semantic.py: Simplified. |
854 |
The NodeComponent is passed as an argument now. |
855 |
|
856 |
* tools/formed/formed/plugins/web/renderer.py: Generate a |
857 |
hidden field to store the name of the page. |
858 |
|
859 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
860 |
|
861 |
* tools/formed/formed/plugins/web/plugin.py: Fixed an encoding |
862 |
issue with incoming UTF-8 data. |
863 |
|
864 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
865 |
|
866 |
* tools/formed/test-data/simple.xml: Improve test for widgets |
867 |
in switches. |
868 |
|
869 |
* tools/formed/formed/model/data.py: Added a method to find all |
870 |
widgets in a given page. Fixed a bug when walking in switch |
871 |
with a given mode. |
872 |
|
873 |
* tools/formed/formed/plugins/web/plugin.py: Simple test for |
874 |
listing all widgets in page. |
875 |
|
876 |
2007-08-21 Torsten Irlaender <[email protected]> |
877 |
|
878 |
* tools/formed/formed/plugins/names/filter.py: Fixed file-encoding to |
879 |
latin-1 |
880 |
|
881 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
882 |
|
883 |
* tools/formed/formed/model/data.py: Added mode parameter to |
884 |
walk. |
885 |
|
886 |
* tools/formed/formed/model/nodecomponents.py: SwitchNode overwrites |
887 |
walk() with usage of the new mode parameter. Added a method to |
888 |
give children in a given mode. |
889 |
|
890 |
* tools/formed/formed/plugins/web/renderer.py: Simplified to use |
891 |
new Switch.childrenInMode() method. |
892 |
|
893 |
2007-08-21 Sascha L. Teichmann <[email protected]> |
894 |
|
895 |
* tools/formed/formed/plugins/web/semantic.py: Add checks for |
896 |
texts and text areas. |
897 |
|
898 |
* tools/formed/formed/plugins/web/renderer.py: Set accept-charset |
899 |
to UTF-8 in generated form. |
900 |
|
901 |
2007-08-20 Sascha L. Teichmann <[email protected]> |
902 |
|
903 |
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
904 |
tests for dates. |
905 |
|
906 |
2007-08-20 Sascha L. Teichmann <[email protected]> |
907 |
|
908 |
* tools/formed/test-data/simple.xml: Tweak a bit for integer |
909 |
range test. |
910 |
|
911 |
* tools/formed/formed/model/nodecomponents.py: Added a method |
912 |
to find a tree item for a given name. |
913 |
|
914 |
* tools/formed/formed/plugins/web/semantic.py: New: Box for |
915 |
semantic checking. Has check for integers. |
916 |
|
917 |
* tools/formed/formed/plugins/web/plugin.py: Use semantic |
918 |
check. |
919 |
|
920 |
2007-08-20 Torsten Irlaender <[email protected]> |
921 |
|
922 |
* tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in |
923 |
selection-field generation (Removed quote) |
924 |
|
925 |
2007-08-18 Sascha L. Teichmann <[email protected]> |
926 |
|
927 |
* tools/formed/formed/plugins/web/plugin.py, |
928 |
tools/formed/formed/plugins/web/renderer.py: Added a |
929 |
simple cookie based session management to the HTML |
930 |
renderer. This submit parameters are stored in the |
931 |
session now. This will ease testing the constraint |
932 |
tests which need to be written soon. |
933 |
|
934 |
BEWARE: The session management is _not_ made for production! |
935 |
Denial of service attacks are too easy, and the |
936 |
cryptographical strength of the session id is doubtful. |
937 |
|
938 |
2007-08-18 Sascha L. Teichmann <[email protected]> |
939 |
|
940 |
* tools/formed/formed/plugins/web/renderer.py: Escaping text |
941 |
coming from the document tree now when inserting it into the |
942 |
HTML output. |
943 |
|
944 |
2007-08-18 Sascha L. Teichmann <[email protected]> |
945 |
|
946 |
* tools/formed/formed/plugins/plugin.py: Added a new kind |
947 |
of plug-in: Filter. They have a short and a long description |
948 |
and can be hooked automatically into the new 'Filters' |
949 |
sub menu under 'Extra'. They got called when the user |
950 |
selects their respective menu item. |
951 |
|
952 |
* tools/formed/formed/config.py: Contains the list of |
953 |
installed filters. |
954 |
|
955 |
* tools/formed/formed/main.py: Builds the Extra->Filters |
956 |
sub menu during gui initialization. The hard wired code |
957 |
for make unique and formular name/description -> name |
958 |
is removed because they are implemented as filters now. |
959 |
|
960 |
* tools/formed/formed/model/nodecomponents.py, |
961 |
tools/formed/formed/model/data.py: Removed the make |
962 |
unique and formular name/description -> name code. |
963 |
|
964 |
* tools/formed/formed/plugins/names, |
965 |
tools/formed/formed/plugins/names/__init__.py, |
966 |
tools/formed/formed/plugins/names/filter.py: Added. Contains |
967 |
the make unique and formular name/description -> name code |
968 |
in form of filters. |
969 |
|
970 |
* tools/formed/test-data/simple.xml: Modified to be a better |
971 |
test for the formular name/description -> name filter. |
972 |
|
973 |
2007-08-18 Sascha L. Teichmann <[email protected]> |
974 |
|
975 |
* tools/formed/formed.py, tools/formed/formed/main.py: First |
976 |
command line argument is interpreted as filename of document |
977 |
to be loaded at program startup. |
978 |
|
979 |
2007-08-17 Frank Koormann <[email protected]> |
980 |
|
981 |
* contrib/convert-formedtree2html.xsl: |
982 |
Heading level depending on depth of group node. |
983 |
In case of radio/choice/check only list of options. |
984 |
|
985 |
2007-08-17 Torsten Irlaender <[email protected]> |
986 |
|
987 |
* contrib/convert-formedtree2html.xsl: Output is now generated with |
988 |
HTML doc-string and charset information in the meta-header. |
989 |
|
990 |
2007-08-17 Torsten Irlaender <[email protected]> |
991 |
|
992 |
* contrib/convert-formedtree2html.xsl: Added small script for |
993 |
exporting the formed tree to html |
994 |
|
995 |
2007-08-17 Torsten Irlaender <[email protected]> |
996 |
|
997 |
* tools/formed/model/nodecomponents.py: Added function to rename |
998 |
the set the name of the node to the formularname. The formularname |
999 |
gets shorten to <=64 by removing vowels and is stored lowercase. |
1000 |
If the name is not unique and additional id value is appended. |
1001 |
|
1002 |
* tools/formed/formed/model/data.py: Overwritten renaming-function for |
1003 |
bool-leafs |
1004 |
|
1005 |
* tools/formed/formed/main.py: Added menuitem for renaming the names |
1006 |
of the element |
1007 |
|
1008 |
2007-08-16 Sascha L. Teichmann <[email protected]> |
1009 |
|
1010 |
* tools/formed/formed/main.py: Swaped order of |
1011 |
'Make names unique' and 'Selected mode...' in Extra |
1012 |
menu and put a separator between them. |
1013 |
|
1014 |
2007-08-15 Sascha L. Teichmann <[email protected]> |
1015 |
|
1016 |
* tools/formed/formed/model/data.py: SwitchNodes can add |
1017 |
their modes to a given set now. |
1018 |
|
1019 |
* tools/formed/formed/plugins/plugin.py: Simplified |
1020 |
the plug-in interface. Only the reference to the |
1021 |
global configuration is passed at setup time. |
1022 |
|
1023 |
* tools/formed/formed/plugins/web/plugin.py: Adjusted |
1024 |
to new plug-in setup. The traveral mode is now taken |
1025 |
from the global configuration each time a rendering |
1026 |
is triggered. The FORMED parameter is now named |
1027 |
'doc.mode' instead of 'web.mode'. The parameter |
1028 |
is not needed any more because it can be configured |
1029 |
at runtime. |
1030 |
|
1031 |
* tools/formed/formed/main.py: Adjusted to new plugin |
1032 |
setup. Added a new menu item Extra->Select Mode... |
1033 |
to select the traversal mode. It is stored in the |
1034 |
global config. |
1035 |
|
1036 |
* tools/formed/formed/config.py: Simplified. Only uses |
1037 |
one env dictionary to store global configuration parameters. |
1038 |
|
1039 |
* tools/formed/formed/ui/controls.py: Add a control to |
1040 |
select one item from a list of given strings. |
1041 |
|
1042 |
2007-08-15 Sascha L. Teichmann <[email protected]> |
1043 |
|
1044 |
* tools/formed/formed/plugins/web/plugin.py, |
1045 |
tools/formed/formed/plugins/web/renderer.py: Added parameter |
1046 |
print out in web plugin. |
1047 |
|
1048 |
2007-08-15 Torsten Irlaender <[email protected]> |
1049 |
|
1050 |
* contrib/convert-formedtree2csv.xsl: Added small script for |
1051 |
exporting the formed tree to csv |
1052 |
|
1053 |
2007-08-14 Sascha L. Teichmann <[email protected]> |
1054 |
|
1055 |
* tools/formed/formed/model/data.py, |
1056 |
tools/formed/formed/model/nodecomponents.py, |
1057 |
tools/formed/formed/io/document.py: Added a 'switch' node. |
1058 |
|
1059 |
* tools/formed/formed/plugins/web/renderer.py:Render the |
1060 |
new 'switch' node. |
1061 |
|
1062 |
* tools/formed/formed/plugins/web/plugin.py, |
1063 |
tools/formed/formed/config.py: Added a 'web.mode' parameter |
1064 |
to FORMED environment variable. |
1065 |
e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. |
1066 |
Defaults to 'default'. |
1067 |
|
1068 |
* tools/formed/test-data/simple.xml: Added test for switch. |
1069 |
|
1070 |
2007-08-14 Sascha L. Teichmann <[email protected]> |
1071 |
|
1072 |
* tools/formed/formed/model/nodecomponents.py: Added an |
1073 |
attribute 'formularname' to base class of node components. |
1074 |
|
1075 |
2007-08-13 Sascha L. Teichmann <[email protected]> |
1076 |
|
1077 |
* tools/formed/formed/io/document.py, |
1078 |
tools/formed/formed/model/data.py, |
1079 |
tools/formed/formed/model/nodecomponents.py: Added an item |
1080 |
to model external item lists. |
1081 |
|
1082 |
* tools/formed/formed/plugins/web/renderer.py: Render new item |
1083 |
list. |
1084 |
* tools/formed/formed/main.py: Added a forgotten 'self.' |
1085 |
|
1086 |
* contrib/extract-xfa-items.sh: Modified to generate |
1087 |
documents to be loadable from new item lists |
1088 |
|
1089 |
2007-08-13 Sascha L. Teichmann <[email protected]> |
1090 |
|
1091 |
* tools/formed/formed/main.py: Fixed typo |
1092 |
|
1093 |
2007-08-13 Sascha L. Teichmann <[email protected]> |
1094 |
|
1095 |
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
1096 |
choice item lists for a given field from XFA files. e.g. with |
1097 |
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
1098 |
|
1099 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
1100 |
|
1101 |
* tools/formed/formed/model/data.py, |
1102 |
tools/formed/formed/plugins/web/renderer.py, |
1103 |
tools/formed/formed/io/document.py: Changed the structure |
1104 |
of choice constructs. The idea to hold the different items |
1105 |
of a particular choice in a semicolon separated list was bad. |
1106 |
Now choices are groups and the option items are modelled as |
1107 |
embedded bools. (mainly Torsten Irländer's idea). |
1108 |
|
1109 |
WARNING: this makes old document files containing choices incompatible!!! |
1110 |
Use the following XSLT to reestablish compatibility. |
1111 |
|
1112 |
* contrib/itemize-choices.xsl: New converts old to new structure. |
1113 |
Needs exslt.org's string extensions (which xsltproc includes) |
1114 |
|
1115 |
* tools/formed/test-data/simple.xml: Ajusted to new structure |
1116 |
|
1117 |
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
1118 |
|
1119 |
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
1120 |
node finding code. It now uses the walk() generator, too. |
1121 |
|
1122 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
1123 |
|
1124 |
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
1125 |
copies the currently selected item and appends it after the selection. |
1126 |
|
1127 |
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
1128 |
of the tree. |
1129 |
|
1130 |
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
1131 |
|
1132 |
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
1133 |
forgot a 'self.' prefix. |
1134 |
|
1135 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
1136 |
|
1137 |
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
1138 |
a second document to the current. |
1139 |
|
1140 |
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
1141 |
a second document to be appended to the current. |
1142 |
|
1143 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
1144 |
|
1145 |
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
1146 |
a new document when triggered. |
1147 |
|
1148 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
1149 |
|
1150 |
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
1151 |
items in the document tree. Added a method to eliminated duplicated names |
1152 |
in document tree. |
1153 |
|
1154 |
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
1155 |
after names collisions are eliminated. |
1156 |
|
1157 |
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
1158 |
'Make names unique'. |
1159 |
|
1160 |
2007-08-11 Sascha L. Teichmann <[email protected]> |
1161 |
|
1162 |
* tools/formed/formed/model/data.py, |
1163 |
tools/formed/formed/plugins/web/renderer.py: Removed support |
1164 |
for 'text' attributes in bool items. They were never really |
1165 |
used and the 'description' attributes fulfill the same |
1166 |
purpose. |
1167 |
|
1168 |
* contrib/remove-bool-text.xsl: Transform to remove the |
1169 |
'text' attributes from bool items. Apply with: |
1170 |
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
1171 |
|
1172 |
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
1173 |
from bool items. |
1174 |
|
1175 |
2007-08-11 Sascha L. Teichmann <[email protected]> |
1176 |
|
1177 |
* contrib/convert-choices.xsl: Simpified. |
1178 |
|
1179 |
2007-08-11 Sascha L. Teichmann <[email protected]> |
1180 |
|
1181 |
* tools/formed/formed/model/data.py: Removed 'options' attribute |
1182 |
from ChoiceLeaf. Use 'value' instead, please! |
1183 |
|
1184 |
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
1185 |
instead of 'options' to render choices. |
1186 |
|
1187 |
* contrib/convert-choices.xsl: Added to convert document files |
1188 |
which use the choice 'option' attribute to usage of 'value'. |
1189 |
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
1190 |
|
1191 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
1192 |
|
1193 |
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
1194 |
are selected by 'checked' and not by 'selected'. Fixed. |
1195 |
|
1196 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
1197 |
|
1198 |
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
1199 |
initialized with size = 1. |
1200 |
|
1201 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
1202 |
|
1203 |
* tools/formed/formed/model/data.py: TextLeafs are now |
1204 |
initialized with size = 40, maxlength = 60 |
1205 |
|
1206 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
1207 |
|
1208 |
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
1209 |
are renderered with description now. |
1210 |
|
1211 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
1212 |
|
1213 |
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
1214 |
for date items. Added missing ids for texts and textareas. |
1215 |
|
1216 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
1217 |
|
1218 |
* tools/formed/formed/config.py: Evaluate the environment |
1219 |
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
1220 |
|
1221 |
* tools/formed/formed/plugins/plugin.py: Give a reference |
1222 |
to the config at setup time. |
1223 |
|
1224 |
* tools/formed/formed/plugins/web/plugin.py: To determine |
1225 |
the port look at FORMED dictionary first. Key is 'web.port'. |
1226 |
e.g. FORMED='web.port:8888' |
1227 |
|
1228 |
* tools/formed/formed/main.py: Call the plugin setup with |
1229 |
the reference to the config. |
1230 |
|
1231 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
1232 |
|
1233 |
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
1234 |
info tags. Use the 'value' attributes for same purpose now, please! |
1235 |
|
1236 |
* tools/formed/formed/model/data.py: removed text attributes from |
1237 |
InfoLeaf. |
1238 |
|
1239 |
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
1240 |
now uses the 'value' instead of the 'text' attributes. |
1241 |
|
1242 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
1243 |
|
1244 |
* tools/formed/formed/model/data.py: next/prevPage() are |
1245 |
methods of PageNode now. |
1246 |
|
1247 |
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
1248 |
is method of Document now. |
1249 |
|
1250 |
* tools/formed/formed/plugins/web/plugin.py: Factored out |
1251 |
the HTML renderer. |
1252 |
|
1253 |
* tools/formed/formed/plugins/web/renderer.py: New: contains |
1254 |
the HTML renderer now. |
1255 |
|
1256 |
* tools/formed/test-data/simple.xml: Fixed typo |
1257 |
|
1258 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
1259 |
|
1260 |
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
1261 |
in calculation of width of bounded int fields. |
1262 |
|
1263 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
1264 |
|
1265 |
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
1266 |
|
1267 |
* tools/formed/formed/model/data.py: Added attributes to IntLeaf |
1268 |
|
1269 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering for |
1270 |
Ints |
1271 |
|
1272 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
1273 |
|
1274 |
* tools/formed/test-data/simple.xml: Added demo textarea |
1275 |
|
1276 |
* tools/formed/formed/model/data.py: Added TextAreaLeaf |
1277 |
|
1278 |
* tools/formed/formed/io/document.py: register builder |
1279 |
for loading of textareas |
1280 |
|
1281 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
1282 |
for textareas. |
1283 |
|
1284 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
1285 |
|
1286 |
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
1287 |
|
1288 |
* tools/formed/formed/model/data.py: Added attributes for texts |
1289 |
|
1290 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
1291 |
for texts |
1292 |
|
1293 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
1294 |
|
1295 |
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
1296 |
|
1297 |
* tools/formed/formed/model/data.py: Added attributes for choices. |
1298 |
|
1299 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
1300 |
for choices |
1301 |
|
1302 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
1303 |
|
1304 |
* tools/formed/formed/model/data.py, |
1305 |
tools/formed/formed/model/nodecomponents.py: Added new |
1306 |
attributes. |
1307 |
|
1308 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
1309 |
for checkboxes and radio buttons. |
1310 |
|
1311 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
1312 |
|
1313 |
* tools/formed/test-data/simple.xml: Added some descriptions |
1314 |
|
1315 |
* tools/formed/formed/model/data.py: set attributes in constructors |
1316 |
directly. |
1317 |
|
1318 |
* tools/formed/formed/model/nodecomponents.py: Added description |
1319 |
attribute in the NodeComponent base class. |
1320 |
|
1321 |
* tools/formed/formed/plugins/web/plugin.py: Render description |
1322 |
as legend in fieldset for GroupNodes. |
1323 |
|
1324 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
1325 |
|
1326 |
* tools/formed/formed/plugins/web/plugin.py: make UTF-8 |
1327 |
output work. |
1328 |
|
1329 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
1330 |
|
1331 |
* tools/formed/formed/model/data.py: Added get/setText() method |
1332 |
|
1333 |
* tools/formed/formed/plugins/web/plugin.py: Added a first |
1334 |
version of a recursive HTML renderer based on the document |
1335 |
tree. |
1336 |
|
1337 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
1338 |
|
1339 |
* tools/formed/formed/plugins/*: New: plug-in infrastructure. |
1340 |
|
1341 |
* tools/formed/formed/plugins/web/*: new: A simple web server |
1342 |
which is intended to serve pages of the current formular. |
1343 |
|
1344 |
* tools/formed/formed/main.py: start the plug-ins |
1345 |
|
1346 |
* tools/formed/formed/config.py: configuration class. Used |
1347 |
for the plug-ins. |
1348 |
|
1349 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
1350 |
|
1351 |
* tools/formed/formed/model/nodecomponents.py: Fixed broadcasting |
1352 |
issue with zero length tree paths. |
1353 |
|
1354 |
* tools/formed/formed/model/misc.py: New: contains a class |
1355 |
for generating unique ids. |
1356 |
|
1357 |
* tools/formed/formed/main.py: Added an instance of an |
1358 |
unique id generator for naming of new made tree items. |
1359 |
|
1360 |
2007-08-07 Sascha L. Teichmann <[email protected]> |
1361 |
|
1362 |
* tools/formed/formed/main.py: Added event route document -> |
1363 |
attribute table to get informed when selected item is delete |
1364 |
or an attribute is changed from the outside. |
1365 |
|
1366 |
* tools/formed/formed/ui/controls.py: Fixed. In older versions of |
1367 |
wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead |
1368 |
of 3 argument. Uses icons+tooltips for tree navigation now. |
1369 |
|
1370 |
2007-08-07 Sascha L. Teichmann <[email protected]> |
1371 |
|
1372 |
* tools/formed/formed/model/nodecomponents.py: Set name |
1373 |
attribute in base class. |
1374 |
|
1375 |
* tools/formed/formed/io/document.py: Added a table |
1376 |
names -> classes. |
1377 |
|
1378 |
* tools/formed/formed/main.py: Added a toolbar. Added code |
1379 |
to create and delete tree items. |
1380 |
|
1381 |
* tools/formed/formed/ui/controls.py: Added code to |
1382 |
insert and delete new tree items. |
1383 |
|
1384 |
2007-08-07 Sascha L. Teichmann <[email protected]> |
1385 |
|
1386 |
* tools/formed/formed/model/nodecomponents.py: Fixed event |
1387 |
broadcasting for attribute changes. |
1388 |
|
1389 |
* tools/formed/formed/ui/controls.py: Add a list/table control to |
1390 |
edit the attributes of a selected item. |
1391 |
|
1392 |
* tools/formed/formed/main.py: Added code to bind the new |
1393 |
list/table control. |
1394 |
|
1395 |
2007-08-06 Sascha L. Teichmann <[email protected]> |
1396 |
|
1397 |
* tools/formed/formed/main.py: Added event routes to move |
1398 |
items in and out of groups. |
1399 |
|
1400 |
* tools/formed/formed/ui/controls.py: Added code to move |
1401 |
items in and out of groups. |
1402 |
|
1403 |
2007-08-06 Sascha L. Teichmann <[email protected]> |
1404 |
|
1405 |
* tools/formed/formed/model/nodecomponents.py: Fixed path |
1406 |
calculation to root and event broadcasting |
1407 |
|
1408 |
* tools/formed/formed/io/factories.py: Adjust to new |
1409 |
event broadcasting. |
1410 |
|
1411 |
* tools/formed/formed/main.py: Added code to move items |
1412 |
up and down the document tree. |
1413 |
|
1414 |
* tools/formed/formed/ui/controls.py: Establish sort order |
1415 |
by indices of children in parent instead of alphanum. |
1416 |
Code to move items up and down the document tree. |
1417 |
|
1418 |
* tools/formed/formed/io/document.py: Added missing imports. |
1419 |
|
1420 |
2007-08-06 Sascha L. Teichmann <[email protected]> |
1421 |
|
1422 |
* tools/formed/formed.py: Added to avoid problems with |
1423 |
ambiguous absolute module names. Thanks to Bernhard Herzog |
1424 |
|
1425 |
* tools/formed/formed.sh: Starts formed.py now |
1426 |
|
1427 |
* tools/formed/formed/main.py, |
1428 |
tools/formed/formed/ui/controls.py: Added control to |
1429 |
move items around in tree. Has no effect by now. |
1430 |
|
1431 |
2007-08-05 Sascha L. Teichmann <[email protected]> |
1432 |
|
1433 |
* tools/formed/formed/io/parser.py: Adjusted style |
1434 |
|
1435 |
* tools/formed/formed/io/document.py, |
1436 |
tools/formed/formed/io/factories.py: Simplified factory |
1437 |
model for XML loading. |
1438 |
|
1439 |
2007-08-05 Sascha L. Teichmann <[email protected]> |
1440 |
|
1441 |
* ChangeLog: started ChangeLog |
1442 |
|
1443 |
* tools/formed/*: initial check-in of the Formular Editor. |
1444 |
Not working yet. Only can load, view and store formular XML files. |
1445 |
Start it with 'tools/formed/formed.sh'. |