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