1 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/model/data.py: Small cosmetic cleanups |
4 |
|
|
5 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
6 |
|
|
7 |
|
* tools/formed/formed/plugins/web/renderer.py: Another fix |
8 |
|
for the hidden field. Argh! |
9 |
|
|
10 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
11 |
|
|
12 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed double |
13 |
|
generation of hidden page field. |
14 |
|
|
15 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
16 |
|
|
17 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
18 |
|
checks for radio groups. |
19 |
|
|
20 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
21 |
|
|
22 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
23 |
|
checks for choices. |
24 |
|
|
25 |
|
2007-08-21 Frank Koormann <[email protected]> |
26 |
|
|
27 |
|
* contrib/convert-formedtree2html.xsl: Display switch nodes as |
28 |
|
alternatives. |
29 |
|
|
30 |
|
2007-08-21 Frank Koormann <[email protected]> |
31 |
|
|
32 |
|
* contrib/convert-formedtree2html.xsl: |
33 |
|
Replace technical types with readable descriptions |
34 |
|
|
35 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
36 |
|
|
37 |
|
* tools/formed/formed/plugins/web/plugin.py: Fix a few smaller |
38 |
|
issues. 'action' looks for all widgets on a page now, goes |
39 |
|
through all passed parameters, tries to match them with the |
40 |
|
widgets of the page and put them into the semantic box. |
41 |
|
Afterwards a list of untouched page parameters are left |
42 |
|
which will be deleted from the semantic box. |
43 |
|
|
44 |
|
* tools/formed/formed/plugins/web/semantic.py: Simplified. |
45 |
|
The NodeComponent is passed as an argument now. |
46 |
|
|
47 |
|
* tools/formed/formed/plugins/web/renderer.py: Generate a |
48 |
|
hidden field to store the name of the page. |
49 |
|
|
50 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
51 |
|
|
52 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed an encoding |
53 |
|
issue with incoming UTF-8 data. |
54 |
|
|
55 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
56 |
|
|
57 |
|
* tools/formed/test-data/simple.xml: Improve test for widgets |
58 |
|
in switches. |
59 |
|
|
60 |
|
* tools/formed/formed/model/data.py: Added a method to find all |
61 |
|
widgets in a given page. Fixed a bug when walking in switch |
62 |
|
with a given mode. |
63 |
|
|
64 |
|
* tools/formed/formed/plugins/web/plugin.py: Simple test for |
65 |
|
listing all widgets in page. |
66 |
|
|
67 |
|
2007-08-21 Torsten Irlaender <[email protected]> |
68 |
|
|
69 |
|
* tools/formed/formed/plugins/names/filter.py: Fixed file-encoding to |
70 |
|
latin-1 |
71 |
|
|
72 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
73 |
|
|
74 |
|
* tools/formed/formed/model/data.py: Added mode parameter to |
75 |
|
walk. |
76 |
|
|
77 |
|
* tools/formed/formed/model/nodecomponents.py: SwitchNode overwrites |
78 |
|
walk() with usage of the new mode parameter. Added a method to |
79 |
|
give children in a given mode. |
80 |
|
|
81 |
|
* tools/formed/formed/plugins/web/renderer.py: Simplified to use |
82 |
|
new Switch.childrenInMode() method. |
83 |
|
|
84 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
85 |
|
|
86 |
|
* tools/formed/formed/plugins/web/semantic.py: Add checks for |
87 |
|
texts and text areas. |
88 |
|
|
89 |
|
* tools/formed/formed/plugins/web/renderer.py: Set accept-charset |
90 |
|
to UTF-8 in generated form. |
91 |
|
|
92 |
|
2007-08-20 Sascha L. Teichmann <[email protected]> |
93 |
|
|
94 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
95 |
|
tests for dates. |
96 |
|
|
97 |
|
2007-08-20 Sascha L. Teichmann <[email protected]> |
98 |
|
|
99 |
|
* tools/formed/test-data/simple.xml: Tweak a bit for integer |
100 |
|
range test. |
101 |
|
|
102 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
103 |
|
to find a tree item for a given name. |
104 |
|
|
105 |
|
* tools/formed/formed/plugins/web/semantic.py: New: Box for |
106 |
|
semantic checking. Has check for integers. |
107 |
|
|
108 |
|
* tools/formed/formed/plugins/web/plugin.py: Use semantic |
109 |
|
check. |
110 |
|
|
111 |
|
2007-08-20 Torsten Irlaender <[email protected]> |
112 |
|
|
113 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in |
114 |
|
selection-field generation (Removed quote) |
115 |
|
|
116 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
117 |
|
|
118 |
|
* tools/formed/formed/plugins/web/plugin.py, |
119 |
|
tools/formed/formed/plugins/web/renderer.py: Added a |
120 |
|
simple cookie based session management to the HTML |
121 |
|
renderer. This submit parameters are stored in the |
122 |
|
session now. This will ease testing the constraint |
123 |
|
tests which need to be written soon. |
124 |
|
|
125 |
|
BEWARE: The session management is _not_ made for production! |
126 |
|
Denial of service attacks are too easy, and the |
127 |
|
cryptographical strength of the session id is doubtful. |
128 |
|
|
129 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
130 |
|
|
131 |
|
* tools/formed/formed/plugins/web/renderer.py: Escaping text |
132 |
|
coming from the document tree now when inserting it into the |
133 |
|
HTML output. |
134 |
|
|
135 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
136 |
|
|
137 |
|
* tools/formed/formed/plugins/plugin.py: Added a new kind |
138 |
|
of plug-in: Filter. They have a short and a long description |
139 |
|
and can be hooked automatically into the new 'Filters' |
140 |
|
sub menu under 'Extra'. They got called when the user |
141 |
|
selects their respective menu item. |
142 |
|
|
143 |
|
* tools/formed/formed/config.py: Contains the list of |
144 |
|
installed filters. |
145 |
|
|
146 |
|
* tools/formed/formed/main.py: Builds the Extra->Filters |
147 |
|
sub menu during gui initialization. The hard wired code |
148 |
|
for make unique and formular name/description -> name |
149 |
|
is removed because they are implemented as filters now. |
150 |
|
|
151 |
|
* tools/formed/formed/model/nodecomponents.py, |
152 |
|
tools/formed/formed/model/data.py: Removed the make |
153 |
|
unique and formular name/description -> name code. |
154 |
|
|
155 |
|
* tools/formed/formed/plugins/names, |
156 |
|
tools/formed/formed/plugins/names/__init__.py, |
157 |
|
tools/formed/formed/plugins/names/filter.py: Added. Contains |
158 |
|
the make unique and formular name/description -> name code |
159 |
|
in form of filters. |
160 |
|
|
161 |
|
* tools/formed/test-data/simple.xml: Modified to be a better |
162 |
|
test for the formular name/description -> name filter. |
163 |
|
|
164 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
165 |
|
|
166 |
|
* tools/formed/formed.py, tools/formed/formed/main.py: First |
167 |
|
command line argument is interpreted as filename of document |
168 |
|
to be loaded at program startup. |
169 |
|
|
170 |
|
2007-08-17 Frank Koormann <[email protected]> |
171 |
|
|
172 |
|
* contrib/convert-formedtree2html.xsl: |
173 |
|
Heading level depending on depth of group node. |
174 |
|
In case of radio/choice/check only list of options. |
175 |
|
|
176 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
177 |
|
|
178 |
|
* contrib/convert-formedtree2html.xsl: Output is now generated with |
179 |
|
HTML doc-string and charset information in the meta-header. |
180 |
|
|
181 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
182 |
|
|
183 |
|
* contrib/convert-formedtree2html.xsl: Added small script for |
184 |
|
exporting the formed tree to html |
185 |
|
|
186 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
187 |
|
|
188 |
|
* tools/formed/model/nodecomponents.py: Added function to rename |
189 |
|
the set the name of the node to the formularname. The formularname |
190 |
|
gets shorten to <=64 by removing vowels and is stored lowercase. |
191 |
|
If the name is not unique and additional id value is appended. |
192 |
|
|
193 |
|
* tools/formed/formed/model/data.py: Overwritten renaming-function for |
194 |
|
bool-leafs |
195 |
|
|
196 |
|
* tools/formed/formed/main.py: Added menuitem for renaming the names |
197 |
|
of the element |
198 |
|
|
199 |
|
2007-08-16 Sascha L. Teichmann <[email protected]> |
200 |
|
|
201 |
|
* tools/formed/formed/main.py: Swaped order of |
202 |
|
'Make names unique' and 'Selected mode...' in Extra |
203 |
|
menu and put a separator between them. |
204 |
|
|
205 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
206 |
|
|
207 |
|
* tools/formed/formed/model/data.py: SwitchNodes can add |
208 |
|
their modes to a given set now. |
209 |
|
|
210 |
|
* tools/formed/formed/plugins/plugin.py: Simplified |
211 |
|
the plug-in interface. Only the reference to the |
212 |
|
global configuration is passed at setup time. |
213 |
|
|
214 |
|
* tools/formed/formed/plugins/web/plugin.py: Adjusted |
215 |
|
to new plug-in setup. The traveral mode is now taken |
216 |
|
from the global configuration each time a rendering |
217 |
|
is triggered. The FORMED parameter is now named |
218 |
|
'doc.mode' instead of 'web.mode'. The parameter |
219 |
|
is not needed any more because it can be configured |
220 |
|
at runtime. |
221 |
|
|
222 |
|
* tools/formed/formed/main.py: Adjusted to new plugin |
223 |
|
setup. Added a new menu item Extra->Select Mode... |
224 |
|
to select the traversal mode. It is stored in the |
225 |
|
global config. |
226 |
|
|
227 |
|
* tools/formed/formed/config.py: Simplified. Only uses |
228 |
|
one env dictionary to store global configuration parameters. |
229 |
|
|
230 |
|
* tools/formed/formed/ui/controls.py: Add a control to |
231 |
|
select one item from a list of given strings. |
232 |
|
|
233 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
234 |
|
|
235 |
|
* tools/formed/formed/plugins/web/plugin.py, |
236 |
|
tools/formed/formed/plugins/web/renderer.py: Added parameter |
237 |
|
print out in web plugin. |
238 |
|
|
239 |
|
2007-08-15 Torsten Irlaender <[email protected]> |
240 |
|
|
241 |
|
* contrib/convert-formedtree2csv.xsl: Added small script for |
242 |
|
exporting the formed tree to csv |
243 |
|
|
244 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
245 |
|
|
246 |
|
* tools/formed/formed/model/data.py, |
247 |
|
tools/formed/formed/model/nodecomponents.py, |
248 |
|
tools/formed/formed/io/document.py: Added a 'switch' node. |
249 |
|
|
250 |
|
* tools/formed/formed/plugins/web/renderer.py:Render the |
251 |
|
new 'switch' node. |
252 |
|
|
253 |
|
* tools/formed/formed/plugins/web/plugin.py, |
254 |
|
tools/formed/formed/config.py: Added a 'web.mode' parameter |
255 |
|
to FORMED environment variable. |
256 |
|
e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. |
257 |
|
Defaults to 'default'. |
258 |
|
|
259 |
|
* tools/formed/test-data/simple.xml: Added test for switch. |
260 |
|
|
261 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
262 |
|
|
263 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
264 |
|
attribute 'formularname' to base class of node components. |
265 |
|
|
266 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
267 |
|
|
268 |
|
* tools/formed/formed/io/document.py, |
269 |
|
tools/formed/formed/model/data.py, |
270 |
|
tools/formed/formed/model/nodecomponents.py: Added an item |
271 |
|
to model external item lists. |
272 |
|
|
273 |
|
* tools/formed/formed/plugins/web/renderer.py: Render new item |
274 |
|
list. |
275 |
|
* tools/formed/formed/main.py: Added a forgotten 'self.' |
276 |
|
|
277 |
|
* contrib/extract-xfa-items.sh: Modified to generate |
278 |
|
documents to be loadable from new item lists |
279 |
|
|
280 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
281 |
|
|
282 |
|
* tools/formed/formed/main.py: Fixed typo |
283 |
|
|
284 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
285 |
|
|
286 |
|
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
287 |
|
choice item lists for a given field from XFA files. e.g. with |
288 |
|
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
289 |
|
|
290 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
291 |
|
|
292 |
|
* tools/formed/formed/model/data.py, |
293 |
|
tools/formed/formed/plugins/web/renderer.py, |
294 |
|
tools/formed/formed/io/document.py: Changed the structure |
295 |
|
of choice constructs. The idea to hold the different items |
296 |
|
of a particular choice in a semicolon separated list was bad. |
297 |
|
Now choices are groups and the option items are modelled as |
298 |
|
embedded bools. (mainly Torsten Irländer's idea). |
299 |
|
|
300 |
|
WARNING: this makes old document files containing choices incompatible!!! |
301 |
|
Use the following XSLT to reestablish compatibility. |
302 |
|
|
303 |
|
* contrib/itemize-choices.xsl: New converts old to new structure. |
304 |
|
Needs exslt.org's string extensions (which xsltproc includes) |
305 |
|
|
306 |
|
* tools/formed/test-data/simple.xml: Ajusted to new structure |
307 |
|
|
308 |
|
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
309 |
|
|
310 |
|
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
311 |
|
node finding code. It now uses the walk() generator, too. |
312 |
|
|
313 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
314 |
|
|
315 |
|
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
316 |
|
copies the currently selected item and appends it after the selection. |
317 |
|
|
318 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
319 |
|
of the tree. |
320 |
|
|
321 |
|
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
322 |
|
|
323 |
|
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
324 |
|
forgot a 'self.' prefix. |
325 |
|
|
326 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
327 |
|
|
328 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
329 |
|
a second document to the current. |
330 |
|
|
331 |
|
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
332 |
|
a second document to be appended to the current. |
333 |
|
|
334 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
335 |
|
|
336 |
|
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
337 |
|
a new document when triggered. |
338 |
|
|
339 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
340 |
|
|
341 |
|
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
342 |
|
items in the document tree. Added a method to eliminated duplicated names |
343 |
|
in document tree. |
344 |
|
|
345 |
|
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
346 |
|
after names collisions are eliminated. |
347 |
|
|
348 |
|
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
349 |
|
'Make names unique'. |
350 |
|
|
351 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
352 |
|
|
353 |
|
* tools/formed/formed/model/data.py, |
354 |
|
tools/formed/formed/plugins/web/renderer.py: Removed support |
355 |
|
for 'text' attributes in bool items. They were never really |
356 |
|
used and the 'description' attributes fulfill the same |
357 |
|
purpose. |
358 |
|
|
359 |
|
* contrib/remove-bool-text.xsl: Transform to remove the |
360 |
|
'text' attributes from bool items. Apply with: |
361 |
|
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
362 |
|
|
363 |
|
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
364 |
|
from bool items. |
365 |
|
|
366 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
367 |
|
|
368 |
|
* contrib/convert-choices.xsl: Simpified. |
369 |
|
|
370 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
371 |
|
|
372 |
|
* tools/formed/formed/model/data.py: Removed 'options' attribute |
373 |
|
from ChoiceLeaf. Use 'value' instead, please! |
374 |
|
|
375 |
|
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
376 |
|
instead of 'options' to render choices. |
377 |
|
|
378 |
|
* contrib/convert-choices.xsl: Added to convert document files |
379 |
|
which use the choice 'option' attribute to usage of 'value'. |
380 |
|
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
381 |
|
|
382 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
383 |
|
|
384 |
|
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
385 |
|
are selected by 'checked' and not by 'selected'. Fixed. |
386 |
|
|
387 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
388 |
|
|
389 |
|
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
390 |
|
initialized with size = 1. |
391 |
|
|
392 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
393 |
|
|
394 |
|
* tools/formed/formed/model/data.py: TextLeafs are now |
395 |
|
initialized with size = 40, maxlength = 60 |
396 |
|
|
397 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
398 |
|
|
399 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
400 |
|
are renderered with description now. |
401 |
|
|
402 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
403 |
|
|
404 |
|
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
405 |
|
for date items. Added missing ids for texts and textareas. |
406 |
|
|
407 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
408 |
|
|
409 |
|
* tools/formed/formed/config.py: Evaluate the environment |
410 |
|
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
411 |
|
|
412 |
|
* tools/formed/formed/plugins/plugin.py: Give a reference |
413 |
|
to the config at setup time. |
414 |
|
|
415 |
|
* tools/formed/formed/plugins/web/plugin.py: To determine |
416 |
|
the port look at FORMED dictionary first. Key is 'web.port'. |
417 |
|
e.g. FORMED='web.port:8888' |
418 |
|
|
419 |
|
* tools/formed/formed/main.py: Call the plugin setup with |
420 |
|
the reference to the config. |
421 |
|
|
422 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
423 |
|
|
424 |
|
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
425 |
|
info tags. Use the 'value' attributes for same purpose now, please! |
426 |
|
|
427 |
|
* tools/formed/formed/model/data.py: removed text attributes from |
428 |
|
InfoLeaf. |
429 |
|
|
430 |
|
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
431 |
|
now uses the 'value' instead of the 'text' attributes. |
432 |
|
|
433 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
434 |
|
|
435 |
|
* tools/formed/formed/model/data.py: next/prevPage() are |
436 |
|
methods of PageNode now. |
437 |
|
|
438 |
|
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
439 |
|
is method of Document now. |
440 |
|
|
441 |
|
* tools/formed/formed/plugins/web/plugin.py: Factored out |
442 |
|
the HTML renderer. |
443 |
|
|
444 |
|
* tools/formed/formed/plugins/web/renderer.py: New: contains |
445 |
|
the HTML renderer now. |
446 |
|
|
447 |
|
* tools/formed/test-data/simple.xml: Fixed typo |
448 |
|
|
449 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
450 |
|
|
451 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
452 |
|
in calculation of width of bounded int fields. |
453 |
|
|
454 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
2007-08-09 Sascha L. Teichmann <[email protected]> |
455 |
|
|
456 |
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
* tools/formed/test-data/simple.xml: Make demo Int fancier. |