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