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