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]> |
2007-08-12 Sascha L. Teichmann <[email protected]> |
431 |
|
|
432 |
* tools/formed/formed/model/data.py, |
* tools/formed/formed/model/data.py, |