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