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]> |
2007-08-11 Sascha L. Teichmann <[email protected]> |
469 |
|
|
470 |
* tools/formed/formed/model/data.py: Removed 'options' attribute |
* tools/formed/formed/model/data.py: Removed 'options' attribute |