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