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