1 |
|
2007-09.10 Torsten Irlaender <[email protected]> |
2 |
|
* tools/formed/formed/plugins/web/controllers.py: Added new Class |
3 |
|
ErrorStats which provides Information on remaining errors per page. |
4 |
|
* tools/formed/formed/plugins/web/renderers.py: Finished movement of |
5 |
|
the renderer methods from controllers.py to renderers.py. |
6 |
|
* tools/formed/formed/plugins/web/plugin.py: Removed render_session |
7 |
|
handlers |
8 |
|
|
9 |
|
2007-09-10 Sascha L. Teichmann <[email protected]> |
10 |
|
|
11 |
|
* tools/formed/formed/plugins/web/form_renderer.py: values for |
12 |
|
choices are generated from the document tree now. This brings |
13 |
|
the state storage of select boxes in HTML to live. |
14 |
|
|
15 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
16 |
|
|
17 |
|
* tools/formed/formed/plugins/web/semantic.py: Fixed problems with |
18 |
|
range checking of integers. |
19 |
|
|
20 |
|
* tools/formed/formed/plugins/web/controllers.py: Added class |
21 |
|
ErrorItem to track errors. They are stored in the session. |
22 |
|
|
23 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
24 |
|
|
25 |
|
* tools/formed/formed/model/nodecomponents.py: Fixed returning |
26 |
|
wrong index in Document.indexOfcomponentByClassAndName. |
27 |
|
|
28 |
|
* tools/formed/formed/plugins/web/form_renderer.py: 'error' was |
29 |
|
written 'errot' in renderer for textareas. |
30 |
|
|
31 |
|
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
32 |
|
|
33 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
34 |
|
|
35 |
|
* tools/formed/formed/plugins/web/help.py: Added a 'hasHelp' |
36 |
|
method. Could be cheaper for some implementations of help. |
37 |
|
|
38 |
|
* tools/formed/formed/plugins/web/form_renderer.py: Modified |
39 |
|
FormData to have distinct getData(), getHelp() and getError() |
40 |
|
methods. Various bug fixes. |
41 |
|
|
42 |
|
* tools/formed/formed/plugins/web/controllers.py: Implements the |
43 |
|
new FormData (trivial by now). |
44 |
|
|
45 |
|
* tools/formed/formed/plugins/web/renderer.py: New FormData and |
46 |
|
some bug fixes. |
47 |
|
|
48 |
|
2007-09-09 Sascha L. Teichmann <[email protected]> |
49 |
|
|
50 |
|
* tools/formed/formed/model/memory.py, |
51 |
|
tools/formed/formed/model/persistent.py: Add a getValue() method |
52 |
|
to dataset abstraction. This is a bit of a workaround to bring |
53 |
|
global access across pages for rule checking to work. |
54 |
|
|
55 |
|
* tools/formed/formed/model/data.py: Fixed: When setting a new expression |
56 |
|
the compiled version was not stored in the RuleLeaf. |
57 |
|
|
58 |
|
* tools/formed/formed/model/expr.py: shlex lexer does not like unicode. |
59 |
|
convert the expression string to ascii for compilation. |
60 |
|
|
61 |
|
* tools/formed/formed/plugins/web/semantic.py: Remove the 'box' because |
62 |
|
valid data is stored to the dataset immediately now. Fixed a bug |
63 |
|
with integer handler. |
64 |
|
|
65 |
|
* tools/formed/formed/plugins/web/controllers.py: Removed the semantic 'box' |
66 |
|
stuff. When a submit is done extract the rules from the tree document |
67 |
|
that are effected by the modified variables and check them. |
68 |
|
|
69 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed exception handling |
70 |
|
when dealing with templates. |
71 |
|
|
72 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
73 |
|
* tools/formed/formed/plugins/web/controllers.py, |
74 |
|
tools/formed/formed/plugins/web/renderer.py: Moved more render |
75 |
|
functions into renderer.py. New render classes are: |
76 |
|
DataSetDigestRenderer, DataSetNavigationRenderer, |
77 |
|
DataSetFormularRenderer, ConfirmationDialogRenderer |
78 |
|
|
79 |
|
Note: The new methods are only called from selected handlers. Other |
80 |
|
handlers call the renderes in the old way. |
81 |
|
|
82 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
83 |
|
* tools/formed/formed/plugins/web/form_renderer.py: Renamed |
84 |
|
renderer.py to form_renderer.py. This file will contain formular |
85 |
|
specfic render methods in the future. |
86 |
|
* tools/formed/formed/plugins/web/renderer.py: Added new renderer.py |
87 |
|
which will contain general render methods. |
88 |
|
* tools/formed/formed/plugins/web/controllers.py: Began to move all |
89 |
|
rendering into renderer.py or form_renderer.py. This file will only |
90 |
|
contain teh handlers in the future. |
91 |
|
|
92 |
|
2007-09-07 Torsten Irlaender <[email protected]> |
93 |
|
* tools/formed/formed/plugins/web/renderer.py, |
94 |
|
tools/formed/formed/plugins/web/controller.py: |
95 |
|
Renderes now get an instance of the formdata object to provide |
96 |
|
access the data needed to render various infoboxes etc. Handler |
97 |
|
instanciate the formdata. |
98 |
|
|
99 |
|
2007-09-06 Torsten Irlaender <[email protected]> |
100 |
|
* tools/formed/formed/plugins/web/renderer.py: Mainly tried to get the |
101 |
|
getFormData interface to work. Added two small semantic fixes, but |
102 |
|
did not manage to get it up. Need to exime this a little bit more |
103 |
|
* tools/formed/formed/plugins/web/controllers.py: Put <div> tags |
104 |
|
around the menus on the right side to be able to assign different |
105 |
|
styles. Added dataset actions while editing a dataset. |
106 |
|
|
107 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
108 |
|
* tools/formed/formed/model/memory.py: Fixed deleting datasets by |
109 |
|
removing unwanted del method |
110 |
|
* tools/formed/formed/plugins/web/controllers.py: Implemented |
111 |
|
confiration dialogs for create, delete, and select aof datasets. Started to use |
112 |
|
templates as well for larger information units like the dataset summary. |
113 |
|
|
114 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
115 |
|
|
116 |
|
* tools/formed/formed/model/nodecomponents.py: Added a |
117 |
|
method to document to find index of page. |
118 |
|
|
119 |
|
* tools/formed/formed/plugins/web/semantic.py: Added getValue() |
120 |
|
to fetch data from semantic box. |
121 |
|
|
122 |
|
* tools/formed/formed/plugins/web/controllers.py: Added new |
123 |
|
FormData implementation to support DB and semantic box. |
124 |
|
|
125 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
126 |
|
|
127 |
|
* tools/formed/formed/plugins/web/renderer.py: escaped |
128 |
|
error message. |
129 |
|
|
130 |
|
* tools/formed/formed/plugins/web/controllers.py: Don't fetch |
131 |
|
dataset from backend each time a page is up to edit. |
132 |
|
|
133 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
134 |
|
|
135 |
|
* tools/formed/formed/plugins/web/renderer.py: SimplePageRenderer |
136 |
|
returns "Page not found" if given page is None. |
137 |
|
|
138 |
|
* tools/formed/formed/plugins/web/controllers.py: Added checks |
139 |
|
to avoid crashing when ask for a non-existent page. |
140 |
|
|
141 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
142 |
|
|
143 |
|
* tools/formed/formed/plugins/web/controllers.py: Some clean-ups. |
144 |
|
|
145 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
146 |
|
|
147 |
|
* tools/formed/formed/plugins/web/plugin.py: Remove request handlers |
148 |
|
and renderers. |
149 |
|
|
150 |
|
* tools/formed/formed/plugins/web/controllers.py: New. Contains handlers |
151 |
|
and renderers now. TODO: Move renderers to renderer.py |
152 |
|
|
153 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
154 |
|
|
155 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Adopted web template |
156 |
|
and bound in the the new added functions to create, edit, delete and |
157 |
|
show formdata. |
158 |
|
|
159 |
|
2007-09-05 Sascha L. Teichmann <[email protected]> |
160 |
|
|
161 |
|
* tools/formed/formed/model/memory.py: Removed bisect and use a |
162 |
|
simple linear scan for dataset lookup now. |
163 |
|
|
164 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed various issues |
165 |
|
of different sizes. |
166 |
|
|
167 |
|
2007-09-05 Torsten Irlaender <[email protected]> |
168 |
|
|
169 |
|
* tools/formed/formed/plugins/web/memory.py: Fixed getDataSetById |
170 |
|
fuction |
171 |
|
|
172 |
|
* tools/formed/formed/plugins/web/persistent.py: Added store() method |
173 |
|
to the DataSet interface |
174 |
|
|
175 |
|
* tools/formed/formed/plugins/web/renderer.py: Added handlers and |
176 |
|
renderes for create, update, delete and show actions on formular data. |
177 |
|
|
178 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
179 |
|
|
180 |
|
* tools/formed/formed/plugins/web/server.py: The mapping |
181 |
|
to methods is now driven by regualar expressions and |
182 |
|
a dictionary. Response objects are now able to send |
183 |
|
error codes. |
184 |
|
|
185 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed an issue |
186 |
|
when help in Formdata is None. Moved text for help into |
187 |
|
a top level '''...''' variable. |
188 |
|
|
189 |
|
* tools/formed/test-data/simple.xml: Added test for help. |
190 |
|
|
191 |
|
* tools/formed/formed/plugins/web/help.py: extra None check. |
192 |
|
|
193 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the new |
194 |
|
table driven mapping of reguest handling. TODO: split the |
195 |
|
WebPlugIn.pageHandler() method further to smaller handlers. |
196 |
|
Smaller clean ups and better exception handling. |
197 |
|
|
198 |
|
* tools/formed/formed/plugins/web/cache.py: Report OSErrors |
199 |
|
and do not catch them. |
200 |
|
|
201 |
|
2007-09-04 Torsten Irlaender <[email protected]> |
202 |
|
|
203 |
|
* tools/formed/formed/plugins/web/renderer.py, |
204 |
|
* tools/formed/formed/plugins/web/plugin.py: Added Interface to |
205 |
|
the HelpProvider and inserted help icons to the html output. |
206 |
|
Added decorator for Formelemnts, so textfields, choices etc. are now |
207 |
|
within a <div> tag. |
208 |
|
Modified the error messages. |
209 |
|
|
210 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
211 |
|
|
212 |
|
* tools/formed/formed/plugins/web/cache.py: New. Implements |
213 |
|
the server-side caching more clean. Fixes a bug with |
214 |
|
serving static content. |
215 |
|
|
216 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new cache. |
217 |
|
|
218 |
|
2007-09-04 Sascha L. Teichmann <[email protected]> |
219 |
|
|
220 |
|
* tools/formed/formed/plugins/web/plugin.py: Set MIME type |
221 |
|
to "application/xhtml+xml" when serving help texts. |
222 |
|
|
223 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
224 |
|
|
225 |
|
* tools/formed/formed/plugins/export/diff.py: New. Exports |
226 |
|
pairwise differences between all modes. |
227 |
|
|
228 |
|
* tools/formed/formed/config.py: Use new export filter. |
229 |
|
|
230 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
231 |
|
|
232 |
|
* tools/formed/formed/plugins/web/help.py: New. Parses an |
233 |
|
XHTML document for id'ed divs and builds a help lookup. |
234 |
|
|
235 |
|
* tools/formed/formed/plugins/web/www/help.tmpl: Template for |
236 |
|
the help content frame. |
237 |
|
|
238 |
|
* tools/formed/formed/plugins/web/www/help.xhtml: Some simple |
239 |
|
help text index. |
240 |
|
|
241 |
|
* tools/formed/formed/plugins/web/plugin.py: Serves the help |
242 |
|
texts now. |
243 |
|
|
244 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
245 |
|
|
246 |
|
* tools/formed/formed/plugins/web/plugin.py: Only visible group |
247 |
|
elements will be rendered in the formular navigation. |
248 |
|
Formular pages in the navigation now have their own css-style |
249 |
|
attributes. |
250 |
|
|
251 |
|
2007-09-03 Torsten Irlaender <[email protected]> |
252 |
|
|
253 |
|
* tools/formed/formed/plugins/web/www/main.tmpl: Added div area for page |
254 |
|
errors in template |
255 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed undefined |
256 |
|
pageerrors variable |
257 |
|
|
258 |
|
2007-09-03 Frank Koormann <[email protected]> |
259 |
|
|
260 |
|
* tools/formed/formed/plugins/export/html.py |
261 |
|
(RecursiveExporter): Added annotation to export |
262 |
|
(fillRow()): Renamed old fillNine to this more generic name. |
263 |
|
|
264 |
|
|
265 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
266 |
|
|
267 |
|
* tools/formed/formed/plugins/web/renderer.py: Using the decorator |
268 |
|
from model.misc now. |
269 |
|
|
270 |
|
2007-09-03 Sascha L. Teichmann <[email protected]> |
271 |
|
|
272 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
273 |
|
'annotation' attribute to node components. This is to |
274 |
|
enable FormEd document authors to add comments to groups |
275 |
|
and fields. |
276 |
|
|
277 |
|
2007-09-03 Frank Koormann <[email protected]> |
278 |
|
|
279 |
|
* tools/formed/formed/model/nodecomponents.py |
280 |
|
(NodeComponent.getParent): New method to get node components parent. |
281 |
|
|
282 |
|
* tools/formed/formed/plugins/export/html.py: Export Choice option |
283 |
|
as simple list instead of collection of bools. |
284 |
|
|
285 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
286 |
|
|
287 |
|
* tools/formed/formed/model/persistent.py: Interfaces to abstract |
288 |
|
from persistent storage details. |
289 |
|
|
290 |
|
* tools/formed/formed/model/memory.py: In core implementation |
291 |
|
of the persistent interfaces. |
292 |
|
|
293 |
|
* tools/formed/formed/main.py: Holds a memory data store now. |
294 |
|
|
295 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
296 |
|
|
297 |
|
* tools/formed/formed/plugins/export/sql.py, |
298 |
|
tools/formed/formed/plugins/export/html.py: Fixed constructor chains |
299 |
|
for FileDialogFilter sub classes. |
300 |
|
|
301 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
302 |
|
|
303 |
|
* tools/formed/formed/model/misc.py: Checking the mode in recursive |
304 |
|
tree traversals is a common task. To ease this a decorator function |
305 |
|
checkMode in union with sub classing ModeChecker can be used. |
306 |
|
To make it work simply subclass from ModeChecker and add the decorator |
307 |
|
to the methods that need mode tracking. Before you start the recursion |
308 |
|
call self.prepareDescent(). |
309 |
|
|
310 |
|
* tools/formed/formed/plugins/export/html.py: Uses the new decorator scheme |
311 |
|
now which replace the old. TODO: Make the web renderer use the new scheme |
312 |
|
too. |
313 |
|
|
314 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
315 |
|
|
316 |
|
* tools/formed/formed/plugins/export/sql.py: Removed needless import. |
317 |
|
|
318 |
|
* tools/formed/formed/plugins/export/html.py: HTML table exporter |
319 |
|
uses new FileDialogFilter base class too. |
320 |
|
|
321 |
|
2007-09-02 Sascha L. Teichmann <[email protected]> |
322 |
|
|
323 |
|
* tools/formed/formed/plugins/ui/*: New. All file exporters |
324 |
|
need a file dialog. Till now each of them pulled up its |
325 |
|
own. This was silly code replication. Now there is an abstract |
326 |
|
base class 'FileDialogFilter' which implements the common |
327 |
|
behavior. The file exporters should subclass it. |
328 |
|
|
329 |
|
* tools/formed/formed/plugins/export/sql.py: Subclass the SQL |
330 |
|
exporters from the new base class. TODO: Subclass the HTML |
331 |
|
exporter too. |
332 |
|
|
333 |
|
2007-08-31 Sascha L. Teichmann <[email protected]> |
334 |
|
|
335 |
|
* tools/formed/formed/plugins/export/html.py: Make mode check |
336 |
|
work (again). |
337 |
|
|
338 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
339 |
|
|
340 |
|
* tools/formed/formed/plugins/export/html.py: Rendering of the HTML |
341 |
|
exprt works now in a recursive way. This change was needed because |
342 |
|
the structure of the formedtree has changed to be able to render |
343 |
|
full hirachically document stuctures. (nested lists) |
344 |
|
TODO: Fix modechecking |
345 |
|
|
346 |
|
2007-08-31 Torsten Irlaender <[email protected]> |
347 |
|
|
348 |
|
* tools/formed/formed/plugins/web/plugin.py: Navigation rendering works |
349 |
|
now in recursive way. This change was needed because the structure |
350 |
|
of the formedtree has changed to be able to render full hirachically |
351 |
|
document stuctures. (nested lists) |
352 |
|
|
353 |
2007-08-31 Sascha L. Teichmann <[email protected]> |
2007-08-31 Sascha L. Teichmann <[email protected]> |
354 |
|
|
355 |
* tools/formed/formed/model/nodecomponents.py: use discard() |
* tools/formed/formed/model/nodecomponents.py: use discard() |