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