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