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