1 |
2007-08-15 Torsten Irlaender <[email protected]> |
2 |
* contrib/convert-formedtree2csv.xsl: Added small script for |
3 |
exporting the formed tree to csv |
4 |
|
5 |
2007-08-14 Sascha L. Teichmann <[email protected]> |
6 |
|
7 |
* tools/formed/formed/model/data.py, |
8 |
tools/formed/formed/model/nodecomponents.py, |
9 |
tools/formed/formed/io/document.py: Added a 'switch' node. |
10 |
|
11 |
* tools/formed/formed/plugins/web/renderer.py:Render the |
12 |
new 'switch' node. |
13 |
|
14 |
* tools/formed/formed/plugins/web/plugin.py, |
15 |
tools/formed/formed/config.py: Added a 'web.mode' parameter |
16 |
to FORMED environment variable. |
17 |
e.g. 'FORMED=web.mode:modeX' sets the mode 'modeX'. |
18 |
Defaults to 'default'. |
19 |
|
20 |
* tools/formed/test-data/simple.xml: Added test for switch. |
21 |
|
22 |
2007-08-14 Sascha L. Teichmann <[email protected]> |
23 |
|
24 |
* tools/formed/formed/model/nodecomponents.py: Added an |
25 |
attribute 'formularname' to base class of node components. |
26 |
|
27 |
2007-08-13 Sascha L. Teichmann <[email protected]> |
28 |
|
29 |
* tools/formed/formed/io/document.py, |
30 |
tools/formed/formed/model/data.py, |
31 |
tools/formed/formed/model/nodecomponents.py: Added an item |
32 |
to model external item lists. |
33 |
|
34 |
* tools/formed/formed/plugins/web/renderer.py: Render new item |
35 |
list. |
36 |
* tools/formed/formed/main.py: Added a forgotten 'self.' |
37 |
|
38 |
* contrib/extract-xfa-items.sh: Modified to generate |
39 |
documents to be loadable from new item lists |
40 |
|
41 |
2007-08-13 Sascha L. Teichmann <[email protected]> |
42 |
|
43 |
* tools/formed/formed/main.py: Fixed typo |
44 |
|
45 |
2007-08-13 Sascha L. Teichmann <[email protected]> |
46 |
|
47 |
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
48 |
choice item lists for a given field from XFA files. e.g. with |
49 |
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
50 |
|
51 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
52 |
|
53 |
* tools/formed/formed/model/data.py, |
54 |
tools/formed/formed/plugins/web/renderer.py, |
55 |
tools/formed/formed/io/document.py: Changed the structure |
56 |
of choice constructs. The idea to hold the different items |
57 |
of a particular choice in a semicolon separated list was bad. |
58 |
Now choices are groups and the option items are modelled as |
59 |
embedded bools. (mainly Torsten Irländer's idea). |
60 |
|
61 |
WARNING: this makes old document files containing choices incompatible!!! |
62 |
Use the following XSLT to reestablish compatibility. |
63 |
|
64 |
* contrib/itemize-choices.xsl: New converts old to new structure. |
65 |
Needs exslt.org's string extensions (which xsltproc includes) |
66 |
|
67 |
* tools/formed/test-data/simple.xml: Ajusted to new structure |
68 |
|
69 |
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
70 |
|
71 |
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
72 |
node finding code. It now uses the walk() generator, too. |
73 |
|
74 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
75 |
|
76 |
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
77 |
copies the currently selected item and appends it after the selection. |
78 |
|
79 |
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
80 |
of the tree. |
81 |
|
82 |
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
83 |
|
84 |
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
85 |
forgot a 'self.' prefix. |
86 |
|
87 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
88 |
|
89 |
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
90 |
a second document to the current. |
91 |
|
92 |
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
93 |
a second document to be appended to the current. |
94 |
|
95 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
96 |
|
97 |
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
98 |
a new document when triggered. |
99 |
|
100 |
2007-08-12 Sascha L. Teichmann <[email protected]> |
101 |
|
102 |
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
103 |
items in the document tree. Added a method to eliminated duplicated names |
104 |
in document tree. |
105 |
|
106 |
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
107 |
after names collisions are eliminated. |
108 |
|
109 |
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
110 |
'Make names unique'. |
111 |
|
112 |
2007-08-11 Sascha L. Teichmann <[email protected]> |
113 |
|
114 |
* tools/formed/formed/model/data.py, |
115 |
tools/formed/formed/plugins/web/renderer.py: Removed support |
116 |
for 'text' attributes in bool items. They were never really |
117 |
used and the 'description' attributes fulfill the same |
118 |
purpose. |
119 |
|
120 |
* contrib/remove-bool-text.xsl: Transform to remove the |
121 |
'text' attributes from bool items. Apply with: |
122 |
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
123 |
|
124 |
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
125 |
from bool items. |
126 |
|
127 |
2007-08-11 Sascha L. Teichmann <[email protected]> |
128 |
|
129 |
* contrib/convert-choices.xsl: Simpified. |
130 |
|
131 |
2007-08-11 Sascha L. Teichmann <[email protected]> |
132 |
|
133 |
* tools/formed/formed/model/data.py: Removed 'options' attribute |
134 |
from ChoiceLeaf. Use 'value' instead, please! |
135 |
|
136 |
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
137 |
instead of 'options' to render choices. |
138 |
|
139 |
* contrib/convert-choices.xsl: Added to convert document files |
140 |
which use the choice 'option' attribute to usage of 'value'. |
141 |
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
142 |
|
143 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
144 |
|
145 |
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
146 |
are selected by 'checked' and not by 'selected'. Fixed. |
147 |
|
148 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
149 |
|
150 |
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
151 |
initialized with size = 1. |
152 |
|
153 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
154 |
|
155 |
* tools/formed/formed/model/data.py: TextLeafs are now |
156 |
initialized with size = 40, maxlength = 60 |
157 |
|
158 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
159 |
|
160 |
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
161 |
are renderered with description now. |
162 |
|
163 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
164 |
|
165 |
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
166 |
for date items. Added missing ids for texts and textareas. |
167 |
|
168 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
169 |
|
170 |
* tools/formed/formed/config.py: Evaluate the environment |
171 |
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
172 |
|
173 |
* tools/formed/formed/plugins/plugin.py: Give a reference |
174 |
to the config at setup time. |
175 |
|
176 |
* tools/formed/formed/plugins/web/plugin.py: To determine |
177 |
the port look at FORMED dictionary first. Key is 'web.port'. |
178 |
e.g. FORMED='web.port:8888' |
179 |
|
180 |
* tools/formed/formed/main.py: Call the plugin setup with |
181 |
the reference to the config. |
182 |
|
183 |
2007-08-10 Sascha L. Teichmann <[email protected]> |
184 |
|
185 |
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
186 |
info tags. Use the 'value' attributes for same purpose now, please! |
187 |
|
188 |
* tools/formed/formed/model/data.py: removed text attributes from |
189 |
InfoLeaf. |
190 |
|
191 |
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
192 |
now uses the 'value' instead of the 'text' attributes. |
193 |
|
194 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
195 |
|
196 |
* tools/formed/formed/model/data.py: next/prevPage() are |
197 |
methods of PageNode now. |
198 |
|
199 |
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
200 |
is method of Document now. |
201 |
|
202 |
* tools/formed/formed/plugins/web/plugin.py: Factored out |
203 |
the HTML renderer. |
204 |
|
205 |
* tools/formed/formed/plugins/web/renderer.py: New: contains |
206 |
the HTML renderer now. |
207 |
|
208 |
* tools/formed/test-data/simple.xml: Fixed typo |
209 |
|
210 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
211 |
|
212 |
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
213 |
in calculation of width of bounded int fields. |
214 |
|
215 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
216 |
|
217 |
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
218 |
|
219 |
* tools/formed/formed/model/data.py: Added attributes to IntLeaf |
220 |
|
221 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering for |
222 |
Ints |
223 |
|
224 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
225 |
|
226 |
* tools/formed/test-data/simple.xml: Added demo textarea |
227 |
|
228 |
* tools/formed/formed/model/data.py: Added TextAreaLeaf |
229 |
|
230 |
* tools/formed/formed/io/document.py: register builder |
231 |
for loading of textareas |
232 |
|
233 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
234 |
for textareas. |
235 |
|
236 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
237 |
|
238 |
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
239 |
|
240 |
* tools/formed/formed/model/data.py: Added attributes for texts |
241 |
|
242 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
243 |
for texts |
244 |
|
245 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
246 |
|
247 |
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
248 |
|
249 |
* tools/formed/formed/model/data.py: Added attributes for choices. |
250 |
|
251 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
252 |
for choices |
253 |
|
254 |
2007-08-09 Sascha L. Teichmann <[email protected]> |
255 |
|
256 |
* tools/formed/formed/model/data.py, |
257 |
tools/formed/formed/model/nodecomponents.py: Added new |
258 |
attributes. |
259 |
|
260 |
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
261 |
for checkboxes and radio buttons. |
262 |
|
263 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
264 |
|
265 |
* tools/formed/test-data/simple.xml: Added some descriptions |
266 |
|
267 |
* tools/formed/formed/model/data.py: set attributes in constructors |
268 |
directly. |
269 |
|
270 |
* tools/formed/formed/model/nodecomponents.py: Added description |
271 |
attribute in the NodeComponent base class. |
272 |
|
273 |
* tools/formed/formed/plugins/web/plugin.py: Render description |
274 |
as legend in fieldset for GroupNodes. |
275 |
|
276 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
277 |
|
278 |
* tools/formed/formed/plugins/web/plugin.py: make UTF-8 |
279 |
output work. |
280 |
|
281 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
282 |
|
283 |
* tools/formed/formed/model/data.py: Added get/setText() method |
284 |
|
285 |
* tools/formed/formed/plugins/web/plugin.py: Added a first |
286 |
version of a recursive HTML renderer based on the document |
287 |
tree. |
288 |
|
289 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
290 |
|
291 |
* tools/formed/formed/plugins/*: New: plug-in infrastructure. |
292 |
|
293 |
* tools/formed/formed/plugins/web/*: new: A simple web server |
294 |
which is intended to serve pages of the current formular. |
295 |
|
296 |
* tools/formed/formed/main.py: start the plug-ins |
297 |
|
298 |
* tools/formed/formed/config.py: configuration class. Used |
299 |
for the plug-ins. |
300 |
|
301 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
302 |
|
303 |
* tools/formed/formed/model/nodecomponents.py: Fixed broadcasting |
304 |
issue with zero length tree paths. |
305 |
|
306 |
* tools/formed/formed/model/misc.py: New: contains a class |
307 |
for generating unique ids. |
308 |
|
309 |
* tools/formed/formed/main.py: Added an instance of an |
310 |
unique id generator for naming of new made tree items. |
311 |
|
312 |
2007-08-07 Sascha L. Teichmann <[email protected]> |
313 |
|
314 |
* tools/formed/formed/main.py: Added event route document -> |
315 |
attribute table to get informed when selected item is delete |
316 |
or an attribute is changed from the outside. |
317 |
|
318 |
* tools/formed/formed/ui/controls.py: Fixed. In older versions of |
319 |
wxPython 2.6.x ListCtrl.InsertStringItem takes 2 instead |
320 |
of 3 argument. Uses icons+tooltips for tree navigation now. |
321 |
|
322 |
2007-08-07 Sascha L. Teichmann <[email protected]> |
323 |
|
324 |
* tools/formed/formed/model/nodecomponents.py: Set name |
325 |
attribute in base class. |
326 |
|
327 |
* tools/formed/formed/io/document.py: Added a table |
328 |
names -> classes. |
329 |
|
330 |
* tools/formed/formed/main.py: Added a toolbar. Added code |
331 |
to create and delete tree items. |
332 |
|
333 |
* tools/formed/formed/ui/controls.py: Added code to |
334 |
insert and delete new tree items. |
335 |
|
336 |
2007-08-07 Sascha L. Teichmann <[email protected]> |
337 |
|
338 |
* tools/formed/formed/model/nodecomponents.py: Fixed event |
339 |
broadcasting for attribute changes. |
340 |
|
341 |
* tools/formed/formed/ui/controls.py: Add a list/table control to |
342 |
edit the attributes of a selected item. |
343 |
|
344 |
* tools/formed/formed/main.py: Added code to bind the new |
345 |
list/table control. |
346 |
|
347 |
2007-08-06 Sascha L. Teichmann <[email protected]> |
348 |
|
349 |
* tools/formed/formed/main.py: Added event routes to move |
350 |
items in and out of groups. |
351 |
|
352 |
* tools/formed/formed/ui/controls.py: Added code to move |
353 |
items in and out of groups. |
354 |
|
355 |
2007-08-06 Sascha L. Teichmann <[email protected]> |
356 |
|
357 |
* tools/formed/formed/model/nodecomponents.py: Fixed path |
358 |
calculation to root and event broadcasting |
359 |
|
360 |
* tools/formed/formed/io/factories.py: Adjust to new |
361 |
event broadcasting. |
362 |
|
363 |
* tools/formed/formed/main.py: Added code to move items |
364 |
up and down the document tree. |
365 |
|
366 |
* tools/formed/formed/ui/controls.py: Establish sort order |
367 |
by indices of children in parent instead of alphanum. |
368 |
Code to move items up and down the document tree. |
369 |
|
370 |
* tools/formed/formed/io/document.py: Added missing imports. |
371 |
|
372 |
2007-08-06 Sascha L. Teichmann <[email protected]> |
373 |
|
374 |
* tools/formed/formed.py: Added to avoid problems with |
375 |
ambiguous absolute module names. Thanks to Bernhard Herzog |
376 |
|
377 |
* tools/formed/formed.sh: Starts formed.py now |
378 |
|
379 |
* tools/formed/formed/main.py, |
380 |
tools/formed/formed/ui/controls.py: Added control to |
381 |
move items around in tree. Has no effect by now. |
382 |
|
383 |
2007-08-05 Sascha L. Teichmann <[email protected]> |
384 |
|
385 |
* tools/formed/formed/io/parser.py: Adjusted style |
386 |
|
387 |
* tools/formed/formed/io/document.py, |
388 |
tools/formed/formed/io/factories.py: Simplified factory |
389 |
model for XML loading. |
390 |
|
391 |
2007-08-05 Sascha L. Teichmann <[email protected]> |
392 |
|
393 |
* ChangeLog: started ChangeLog |
394 |
|
395 |
* tools/formed/*: initial check-in of the Formular Editor. |
396 |
Not working yet. Only can load, view and store formular XML files. |
397 |
Start it with 'tools/formed/formed.sh'. |