1 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/plugins/names/filter.py: Separated Class for |
4 |
|
making the formularnames more database friendly. Added some more |
5 |
|
checks. |
6 |
|
* tools/formed/formed/plugins/export/sql.py: Make use of the fresh |
7 |
|
separated class, and some fixes in sql generation. |
8 |
|
|
9 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
10 |
|
|
11 |
|
* tools/formed/formed/plugins/export/html.py: Print lengths |
12 |
|
of external choice list. |
13 |
|
|
14 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
15 |
|
|
16 |
|
* tools/formed/formed/main.py: Little workaround for |
17 |
|
mode selection if someone adds an removes a mode. |
18 |
|
|
19 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
20 |
|
|
21 |
|
* tools/formed/test-data/simple.xml: Better test case for |
22 |
|
mode depended leaf items. |
23 |
|
|
24 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
25 |
|
to calculate the effective mode of an item. |
26 |
|
|
27 |
|
* tools/formed/formed/plugins/export/html.py: Use effective |
28 |
|
mode. TODO: the 'all' modus return false results sometimes. |
29 |
|
Cause: The modes are only cumulated over time. Removal is |
30 |
|
not done. |
31 |
|
|
32 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
33 |
|
|
34 |
|
* tools/formed/formed/plugins/export/html.py: Dump the items |
35 |
|
of radio groups and choices too. |
36 |
|
|
37 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
38 |
|
|
39 |
|
* tools/formed/formed/plugins/names/filter.py: Modified the renaming |
40 |
|
by formular names to make the naming more database friendly. |
41 |
|
Now only alphanumeric and underscore chars is allowed. |
42 |
|
|
43 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
44 |
|
|
45 |
|
* tools/formed/formed/plugins/export/html.py: Tweaked |
46 |
|
HTML table exporter a bit to be on par with the XSLT |
47 |
|
script. TODO: Dump items in radio and choice groups. |
48 |
|
|
49 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
50 |
|
|
51 |
|
* tools/formed/formed/plugins/names/filter.py: Removed |
52 |
|
HTML and SQL exporters. |
53 |
|
|
54 |
|
* tools/formed/formed/plugins/export, |
55 |
|
tools/formed/formed/plugins/export/__init__.py, |
56 |
|
tools/formed/formed/plugins/export/sql.py, |
57 |
|
tools/formed/formed/plugins/export/html.py: New: Contain |
58 |
|
the HTML and the SQL exporters now. |
59 |
|
|
60 |
|
* tools/formed/formed/config.py: Use exporters from different |
61 |
|
package now. |
62 |
|
|
63 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
64 |
|
|
65 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
66 |
|
pseudo SQL export filters. TODO: Move HTML and SQL filter |
67 |
|
in a new file (formed/plugins/export/htmlexport.py and |
68 |
|
sqlexport.py?) |
69 |
|
|
70 |
|
* tools/formed/formed/config.py: Install the new SQL filter. |
71 |
|
|
72 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
73 |
|
|
74 |
|
* tools/formed/formed/model/nodecomponents.py: Added a depth() |
75 |
|
method to determine the depth of particular tree item. |
76 |
|
|
77 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
78 |
|
HTML export filters. TODO: needs more work. |
79 |
|
|
80 |
|
* tools/formed/formed/config.py: Install the new HTML filter. |
81 |
|
|
82 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
83 |
|
|
84 |
|
* contrib/extract-xfa-fields_and_options.xsl: Added small xsl script |
85 |
|
to extract fields and options in the XFA Data in teh PDF. This |
86 |
|
script might me handy to indicate changes between the different |
87 |
|
formular versions. |
88 |
|
|
89 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
90 |
|
|
91 |
|
* tools/formed/formed/main.py: Add an 'all' mode to |
92 |
|
select all modes. ;-) |
93 |
|
|
94 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
95 |
|
|
96 |
|
* tools/formed/test-data/simple.xml, |
97 |
|
tools/formed/formed/model/data.py, |
98 |
|
tools/formed/formed/plugins/web/plugin.py, |
99 |
|
tools/formed/formed/plugins/web/renderer.py, |
100 |
|
tools/formed/formed/io/document.py, |
101 |
|
tools/formed/formed/main.py: Removed support for switch nodes. |
102 |
|
BEWARE: This breaks compatibility with older documents! |
103 |
|
|
104 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
105 |
|
|
106 |
|
* tools/formed/formed/plugins/web/plugin.py: Uses the |
107 |
|
getSelectedMode() from main now. |
108 |
|
|
109 |
|
* tools/formed/formed/main.py: selected mode is now hold |
110 |
|
in main. |
111 |
|
|
112 |
|
* tools/formed/formed/config.py: removed selected mode from |
113 |
|
env configuration. |
114 |
|
|
115 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
116 |
|
|
117 |
|
* tools/formed/formed/ui/controls.py: Attributes in GUI attribute |
118 |
|
table are now alphabetically sorted. |
119 |
|
|
120 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
121 |
|
|
122 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to |
123 |
|
establish the new 'modes' recursively. |
124 |
|
|
125 |
|
* tools/formed/formed/plugins/plugin.py: Pass main instead |
126 |
|
of cfg on plug-in start-up. |
127 |
|
|
128 |
|
* tools/formed/formed/plugins/web/plugin.py: Use the new |
129 |
|
'modes' attribute for rendering. |
130 |
|
|
131 |
|
* tools/formed/formed/plugins/web/renderer.py: Use decorators |
132 |
|
to check the new modes. |
133 |
|
|
134 |
|
* tools/formed/formed/main.py: Adjusted to new infrastructure. |
135 |
|
|
136 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
137 |
|
|
138 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
139 |
|
attribute 'modes' to NodeComponents. |
140 |
|
|
141 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
142 |
|
|
143 |
|
* tools/formed/formed/model/data.py: Small cosmetic cleanups |
144 |
|
|
145 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
146 |
|
|
147 |
|
* tools/formed/formed/plugins/web/renderer.py: Another fix |
148 |
|
for the hidden field. Argh! |
149 |
|
|
150 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
151 |
|
|
152 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed double |
153 |
|
generation of hidden page field. |
154 |
|
|
155 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
156 |
|
|
157 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
158 |
|
checks for radio groups. |
159 |
|
|
160 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
161 |
|
|
162 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
163 |
|
checks for choices. |
164 |
|
|
165 |
|
2007-08-21 Frank Koormann <[email protected]> |
166 |
|
|
167 |
|
* contrib/convert-formedtree2html.xsl: Display switch nodes as |
168 |
|
alternatives. |
169 |
|
|
170 |
|
2007-08-21 Frank Koormann <[email protected]> |
171 |
|
|
172 |
|
* contrib/convert-formedtree2html.xsl: |
173 |
|
Replace technical types with readable descriptions |
174 |
|
|
175 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
176 |
|
|
177 |
|
* tools/formed/formed/plugins/web/plugin.py: Fix a few smaller |
178 |
|
issues. 'action' looks for all widgets on a page now, goes |
179 |
|
through all passed parameters, tries to match them with the |
180 |
|
widgets of the page and put them into the semantic box. |
181 |
|
Afterwards a list of untouched page parameters are left |
182 |
|
which will be deleted from the semantic box. |
183 |
|
|
184 |
|
* tools/formed/formed/plugins/web/semantic.py: Simplified. |
185 |
|
The NodeComponent is passed as an argument now. |
186 |
|
|
187 |
|
* tools/formed/formed/plugins/web/renderer.py: Generate a |
188 |
|
hidden field to store the name of the page. |
189 |
|
|
190 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
191 |
|
|
192 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed an encoding |
193 |
|
issue with incoming UTF-8 data. |
194 |
|
|
195 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
196 |
|
|
197 |
|
* tools/formed/test-data/simple.xml: Improve test for widgets |
198 |
|
in switches. |
199 |
|
|
200 |
|
* tools/formed/formed/model/data.py: Added a method to find all |
201 |
|
widgets in a given page. Fixed a bug when walking in switch |
202 |
|
with a given mode. |
203 |
|
|
204 |
|
* tools/formed/formed/plugins/web/plugin.py: Simple test for |
205 |
|
listing all widgets in page. |
206 |
|
|
207 |
|
2007-08-21 Torsten Irlaender <[email protected]> |
208 |
|
|
209 |
|
* tools/formed/formed/plugins/names/filter.py: Fixed file-encoding to |
210 |
|
latin-1 |
211 |
|
|
212 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
213 |
|
|
214 |
|
* tools/formed/formed/model/data.py: Added mode parameter to |
215 |
|
walk. |
216 |
|
|
217 |
|
* tools/formed/formed/model/nodecomponents.py: SwitchNode overwrites |
218 |
|
walk() with usage of the new mode parameter. Added a method to |
219 |
|
give children in a given mode. |
220 |
|
|
221 |
|
* tools/formed/formed/plugins/web/renderer.py: Simplified to use |
222 |
|
new Switch.childrenInMode() method. |
223 |
|
|
224 |
|
2007-08-21 Sascha L. Teichmann <[email protected]> |
225 |
|
|
226 |
|
* tools/formed/formed/plugins/web/semantic.py: Add checks for |
227 |
|
texts and text areas. |
228 |
|
|
229 |
|
* tools/formed/formed/plugins/web/renderer.py: Set accept-charset |
230 |
|
to UTF-8 in generated form. |
231 |
|
|
232 |
|
2007-08-20 Sascha L. Teichmann <[email protected]> |
233 |
|
|
234 |
|
* tools/formed/formed/plugins/web/semantic.py: Added semantic |
235 |
|
tests for dates. |
236 |
|
|
237 |
|
2007-08-20 Sascha L. Teichmann <[email protected]> |
238 |
|
|
239 |
|
* tools/formed/test-data/simple.xml: Tweak a bit for integer |
240 |
|
range test. |
241 |
|
|
242 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
243 |
|
to find a tree item for a given name. |
244 |
|
|
245 |
|
* tools/formed/formed/plugins/web/semantic.py: New: Box for |
246 |
|
semantic checking. Has check for integers. |
247 |
|
|
248 |
|
* tools/formed/formed/plugins/web/plugin.py: Use semantic |
249 |
|
check. |
250 |
|
|
251 |
|
2007-08-20 Torsten Irlaender <[email protected]> |
252 |
|
|
253 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed Syntax in |
254 |
|
selection-field generation (Removed quote) |
255 |
|
|
256 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
257 |
|
|
258 |
|
* tools/formed/formed/plugins/web/plugin.py, |
259 |
|
tools/formed/formed/plugins/web/renderer.py: Added a |
260 |
|
simple cookie based session management to the HTML |
261 |
|
renderer. This submit parameters are stored in the |
262 |
|
session now. This will ease testing the constraint |
263 |
|
tests which need to be written soon. |
264 |
|
|
265 |
|
BEWARE: The session management is _not_ made for production! |
266 |
|
Denial of service attacks are too easy, and the |
267 |
|
cryptographical strength of the session id is doubtful. |
268 |
|
|
269 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
270 |
|
|
271 |
|
* tools/formed/formed/plugins/web/renderer.py: Escaping text |
272 |
|
coming from the document tree now when inserting it into the |
273 |
|
HTML output. |
274 |
|
|
275 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
276 |
|
|
277 |
|
* tools/formed/formed/plugins/plugin.py: Added a new kind |
278 |
|
of plug-in: Filter. They have a short and a long description |
279 |
|
and can be hooked automatically into the new 'Filters' |
280 |
|
sub menu under 'Extra'. They got called when the user |
281 |
|
selects their respective menu item. |
282 |
|
|
283 |
|
* tools/formed/formed/config.py: Contains the list of |
284 |
|
installed filters. |
285 |
|
|
286 |
|
* tools/formed/formed/main.py: Builds the Extra->Filters |
287 |
|
sub menu during gui initialization. The hard wired code |
288 |
|
for make unique and formular name/description -> name |
289 |
|
is removed because they are implemented as filters now. |
290 |
|
|
291 |
|
* tools/formed/formed/model/nodecomponents.py, |
292 |
|
tools/formed/formed/model/data.py: Removed the make |
293 |
|
unique and formular name/description -> name code. |
294 |
|
|
295 |
|
* tools/formed/formed/plugins/names, |
296 |
|
tools/formed/formed/plugins/names/__init__.py, |
297 |
|
tools/formed/formed/plugins/names/filter.py: Added. Contains |
298 |
|
the make unique and formular name/description -> name code |
299 |
|
in form of filters. |
300 |
|
|
301 |
|
* tools/formed/test-data/simple.xml: Modified to be a better |
302 |
|
test for the formular name/description -> name filter. |
303 |
|
|
304 |
|
2007-08-18 Sascha L. Teichmann <[email protected]> |
305 |
|
|
306 |
|
* tools/formed/formed.py, tools/formed/formed/main.py: First |
307 |
|
command line argument is interpreted as filename of document |
308 |
|
to be loaded at program startup. |
309 |
|
|
310 |
|
2007-08-17 Frank Koormann <[email protected]> |
311 |
|
|
312 |
|
* contrib/convert-formedtree2html.xsl: |
313 |
|
Heading level depending on depth of group node. |
314 |
|
In case of radio/choice/check only list of options. |
315 |
|
|
316 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
317 |
|
|
318 |
|
* contrib/convert-formedtree2html.xsl: Output is now generated with |
319 |
|
HTML doc-string and charset information in the meta-header. |
320 |
|
|
321 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
322 |
|
|
323 |
|
* contrib/convert-formedtree2html.xsl: Added small script for |
324 |
|
exporting the formed tree to html |
325 |
|
|
326 |
|
2007-08-17 Torsten Irlaender <[email protected]> |
327 |
|
|
328 |
|
* tools/formed/model/nodecomponents.py: Added function to rename |
329 |
|
the set the name of the node to the formularname. The formularname |
330 |
|
gets shorten to <=64 by removing vowels and is stored lowercase. |
331 |
|
If the name is not unique and additional id value is appended. |
332 |
|
|
333 |
|
* tools/formed/formed/model/data.py: Overwritten renaming-function for |
334 |
|
bool-leafs |
335 |
|
|
336 |
|
* tools/formed/formed/main.py: Added menuitem for renaming the names |
337 |
|
of the element |
338 |
|
|
339 |
|
2007-08-16 Sascha L. Teichmann <[email protected]> |
340 |
|
|
341 |
|
* tools/formed/formed/main.py: Swaped order of |
342 |
|
'Make names unique' and 'Selected mode...' in Extra |
343 |
|
menu and put a separator between them. |
344 |
|
|
345 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
346 |
|
|
347 |
|
* tools/formed/formed/model/data.py: SwitchNodes can add |
348 |
|
their modes to a given set now. |
349 |
|
|
350 |
|
* tools/formed/formed/plugins/plugin.py: Simplified |
351 |
|
the plug-in interface. Only the reference to the |
352 |
|
global configuration is passed at setup time. |
353 |
|
|
354 |
|
* tools/formed/formed/plugins/web/plugin.py: Adjusted |
355 |
|
to new plug-in setup. The traveral mode is now taken |
356 |
|
from the global configuration each time a rendering |
357 |
|
is triggered. The FORMED parameter is now named |
358 |
|
'doc.mode' instead of 'web.mode'. The parameter |
359 |
|
is not needed any more because it can be configured |
360 |
|
at runtime. |
361 |
|
|
362 |
|
* tools/formed/formed/main.py: Adjusted to new plugin |
363 |
|
setup. Added a new menu item Extra->Select Mode... |
364 |
|
to select the traversal mode. It is stored in the |
365 |
|
global config. |
366 |
|
|
367 |
|
* tools/formed/formed/config.py: Simplified. Only uses |
368 |
|
one env dictionary to store global configuration parameters. |
369 |
|
|
370 |
|
* tools/formed/formed/ui/controls.py: Add a control to |
371 |
|
select one item from a list of given strings. |
372 |
|
|
373 |
|
2007-08-15 Sascha L. Teichmann <[email protected]> |
374 |
|
|
375 |
|
* tools/formed/formed/plugins/web/plugin.py, |
376 |
|
tools/formed/formed/plugins/web/renderer.py: Added parameter |
377 |
|
print out in web plugin. |
378 |
|
|
379 |
|
2007-08-15 Torsten Irlaender <[email protected]> |
380 |
|
|
381 |
|
* contrib/convert-formedtree2csv.xsl: Added small script for |
382 |
|
exporting the formed tree to csv |
383 |
|
|
384 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
385 |
|
|
386 |
|
* tools/formed/formed/model/data.py, |
387 |
|
tools/formed/formed/model/nodecomponents.py, |
388 |
|
tools/formed/formed/io/document.py: Added a 'switch' node. |
389 |
|
|
390 |
|
* tools/formed/formed/plugins/web/renderer.py:Render the |
391 |
|
new 'switch' node. |
392 |
|
|
393 |
|
* tools/formed/formed/plugins/web/plugin.py, |
394 |
|
tools/formed/formed/config.py: Added a 'web.mode' parameter |
395 |
|
to FORMED environment variable. |
396 |
|
e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. |
397 |
|
Defaults to 'default'. |
398 |
|
|
399 |
|
* tools/formed/test-data/simple.xml: Added test for switch. |
400 |
|
|
401 |
|
2007-08-14 Sascha L. Teichmann <[email protected]> |
402 |
|
|
403 |
|
* tools/formed/formed/model/nodecomponents.py: Added an |
404 |
|
attribute 'formularname' to base class of node components. |
405 |
|
|
406 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
407 |
|
|
408 |
|
* tools/formed/formed/io/document.py, |
409 |
|
tools/formed/formed/model/data.py, |
410 |
|
tools/formed/formed/model/nodecomponents.py: Added an item |
411 |
|
to model external item lists. |
412 |
|
|
413 |
|
* tools/formed/formed/plugins/web/renderer.py: Render new item |
414 |
|
list. |
415 |
|
* tools/formed/formed/main.py: Added a forgotten 'self.' |
416 |
|
|
417 |
|
* contrib/extract-xfa-items.sh: Modified to generate |
418 |
|
documents to be loadable from new item lists |
419 |
|
|
420 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
421 |
|
|
422 |
|
* tools/formed/formed/main.py: Fixed typo |
423 |
|
|
424 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
425 |
|
|
426 |
|
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
427 |
|
choice item lists for a given field from XFA files. e.g. with |
428 |
|
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
429 |
|
|
430 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
431 |
|
|
432 |
|
* tools/formed/formed/model/data.py, |
433 |
|
tools/formed/formed/plugins/web/renderer.py, |
434 |
|
tools/formed/formed/io/document.py: Changed the structure |
435 |
|
of choice constructs. The idea to hold the different items |
436 |
|
of a particular choice in a semicolon separated list was bad. |
437 |
|
Now choices are groups and the option items are modelled as |
438 |
|
embedded bools. (mainly Torsten Irländer's idea). |
439 |
|
|
440 |
|
WARNING: this makes old document files containing choices incompatible!!! |
441 |
|
Use the following XSLT to reestablish compatibility. |
442 |
|
|
443 |
|
* contrib/itemize-choices.xsl: New converts old to new structure. |
444 |
|
Needs exslt.org's string extensions (which xsltproc includes) |
445 |
|
|
446 |
|
* tools/formed/test-data/simple.xml: Ajusted to new structure |
447 |
|
|
448 |
|
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
449 |
|
|
450 |
|
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
451 |
|
node finding code. It now uses the walk() generator, too. |
452 |
|
|
453 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
454 |
|
|
455 |
|
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
456 |
|
copies the currently selected item and appends it after the selection. |
457 |
|
|
458 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
459 |
|
of the tree. |
460 |
|
|
461 |
|
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
462 |
|
|
463 |
|
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
464 |
|
forgot a 'self.' prefix. |
465 |
|
|
466 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
467 |
|
|
468 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
469 |
|
a second document to the current. |
470 |
|
|
471 |
|
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
472 |
|
a second document to be appended to the current. |
473 |
|
|
474 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
475 |
|
|
476 |
|
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
477 |
|
a new document when triggered. |
478 |
|
|
479 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
480 |
|
|
481 |
|
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
482 |
|
items in the document tree. Added a method to eliminated duplicated names |
483 |
|
in document tree. |
484 |
|
|
485 |
|
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
486 |
|
after names collisions are eliminated. |
487 |
|
|
488 |
|
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
489 |
|
'Make names unique'. |
490 |
|
|
491 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
492 |
|
|
493 |
|
* tools/formed/formed/model/data.py, |
494 |
|
tools/formed/formed/plugins/web/renderer.py: Removed support |
495 |
|
for 'text' attributes in bool items. They were never really |
496 |
|
used and the 'description' attributes fulfill the same |
497 |
|
purpose. |
498 |
|
|
499 |
|
* contrib/remove-bool-text.xsl: Transform to remove the |
500 |
|
'text' attributes from bool items. Apply with: |
501 |
|
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
502 |
|
|
503 |
|
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
504 |
|
from bool items. |
505 |
|
|
506 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
507 |
|
|
508 |
|
* contrib/convert-choices.xsl: Simpified. |
509 |
|
|
510 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
511 |
|
|
512 |
|
* tools/formed/formed/model/data.py: Removed 'options' attribute |
513 |
|
from ChoiceLeaf. Use 'value' instead, please! |
514 |
|
|
515 |
|
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
516 |
|
instead of 'options' to render choices. |
517 |
|
|
518 |
|
* contrib/convert-choices.xsl: Added to convert document files |
519 |
|
which use the choice 'option' attribute to usage of 'value'. |
520 |
|
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
521 |
|
|
522 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
523 |
|
|
524 |
|
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
525 |
|
are selected by 'checked' and not by 'selected'. Fixed. |
526 |
|
|
527 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
528 |
|
|
529 |
|
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
530 |
|
initialized with size = 1. |
531 |
|
|
532 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
533 |
|
|
534 |
|
* tools/formed/formed/model/data.py: TextLeafs are now |
535 |
|
initialized with size = 40, maxlength = 60 |
536 |
|
|
537 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
538 |
|
|
539 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
540 |
|
are renderered with description now. |
541 |
|
|
542 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
543 |
|
|
544 |
|
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
545 |
|
for date items. Added missing ids for texts and textareas. |
546 |
|
|
547 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
548 |
|
|
549 |
|
* tools/formed/formed/config.py: Evaluate the environment |
550 |
|
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
551 |
|
|
552 |
|
* tools/formed/formed/plugins/plugin.py: Give a reference |
553 |
|
to the config at setup time. |
554 |
|
|
555 |
|
* tools/formed/formed/plugins/web/plugin.py: To determine |
556 |
|
the port look at FORMED dictionary first. Key is 'web.port'. |
557 |
|
e.g. FORMED='web.port:8888' |
558 |
|
|
559 |
|
* tools/formed/formed/main.py: Call the plugin setup with |
560 |
|
the reference to the config. |
561 |
|
|
562 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
563 |
|
|
564 |
|
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
565 |
|
info tags. Use the 'value' attributes for same purpose now, please! |
566 |
|
|
567 |
|
* tools/formed/formed/model/data.py: removed text attributes from |
568 |
|
InfoLeaf. |
569 |
|
|
570 |
|
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
571 |
|
now uses the 'value' instead of the 'text' attributes. |
572 |
|
|
573 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
574 |
|
|
575 |
|
* tools/formed/formed/model/data.py: next/prevPage() are |
576 |
|
methods of PageNode now. |
577 |
|
|
578 |
|
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
579 |
|
is method of Document now. |
580 |
|
|
581 |
|
* tools/formed/formed/plugins/web/plugin.py: Factored out |
582 |
|
the HTML renderer. |
583 |
|
|
584 |
|
* tools/formed/formed/plugins/web/renderer.py: New: contains |
585 |
|
the HTML renderer now. |
586 |
|
|
587 |
|
* tools/formed/test-data/simple.xml: Fixed typo |
588 |
|
|
589 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
590 |
|
|
591 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
592 |
|
in calculation of width of bounded int fields. |
593 |
|
|
594 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
595 |
|
|
596 |
|
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
597 |
|
|
598 |
|
* tools/formed/formed/model/data.py: Added attributes to IntLeaf |
599 |
|
|
600 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering for |
601 |
|
Ints |
602 |
|
|
603 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
604 |
|
|
605 |
|
* tools/formed/test-data/simple.xml: Added demo textarea |
606 |
|
|
607 |
|
* tools/formed/formed/model/data.py: Added TextAreaLeaf |
608 |
|
|
609 |
|
* tools/formed/formed/io/document.py: register builder |
610 |
|
for loading of textareas |
611 |
|
|
612 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
613 |
|
for textareas. |
614 |
|
|
615 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
616 |
|
|
617 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
618 |
|
|
619 |
|
* tools/formed/formed/model/data.py: Added attributes for texts |
620 |
|
|
621 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
622 |
|
for texts |
623 |
|
|
624 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
625 |
|
|
626 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
627 |
|
|
628 |
|
* tools/formed/formed/model/data.py: Added attributes for choices. |
629 |
|
|
630 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
631 |
|
for choices |
632 |
|
|
633 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
634 |
|
|
635 |
|
* tools/formed/formed/model/data.py, |
636 |
|
tools/formed/formed/model/nodecomponents.py: Added new |
637 |
|
attributes. |
638 |
|
|
639 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
640 |
|
for checkboxes and radio buttons. |
641 |
|
|
642 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
643 |
|
|
644 |
|
* tools/formed/test-data/simple.xml: Added some descriptions |
645 |
|
|
646 |
|
* tools/formed/formed/model/data.py: set attributes in constructors |
647 |
|
directly. |
648 |
|
|
649 |
|
* tools/formed/formed/model/nodecomponents.py: Added description |
650 |
|
attribute in the NodeComponent base class. |
651 |
|
|
652 |
|
* tools/formed/formed/plugins/web/plugin.py: Render description |
653 |
|
as legend in fieldset for GroupNodes. |
654 |
|
|
655 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
656 |
|
|
657 |
|
* tools/formed/formed/plugins/web/plugin.py: make UTF-8 |
658 |
|
output work. |
659 |
|
|
660 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
661 |
|
|
662 |
|
* tools/formed/formed/model/data.py: Added get/setText() method |
663 |
|
|
664 |
|
* tools/formed/formed/plugins/web/plugin.py: Added a first |
665 |
|
version of a recursive HTML renderer based on the document |
666 |
|
tree. |
667 |
|
|
668 |
|
2007-08-08 Sascha L. Teichmann <[email protected]> |
669 |
|
|
670 |
|
* tools/formed/formed/plugins/*: New: plug-in infrastructure. |
671 |
|
|
672 |
|
* tools/formed/formed/plugins/web/*: new: A simple web server |
673 |
|
which is intended to serve pages of the current formular. |
674 |
|
|
675 |
|
* tools/formed/formed/main.py: start the plug-ins |
676 |
|
|
677 |
|
* tools/formed/formed/config.py: configuration class. Used |
678 |
|
for the plug-ins. |
679 |
|
|
680 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
2007-08-08 Sascha L. Teichmann <[email protected]> |
681 |
|
|
682 |
* tools/formed/formed/model/nodecomponents.py: Fixed broadcasting |
* tools/formed/formed/model/nodecomponents.py: Fixed broadcasting |