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