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