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