1 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/main.py: Fixed typo |
4 |
|
|
5 |
|
2007-08-13 Sascha L. Teichmann <[email protected]> |
6 |
|
|
7 |
|
* contrib/extract-xfa-items.sh: New. Can be used to extract longer |
8 |
|
choice item lists for a given field from XFA files. e.g. with |
9 |
|
'./contrib/extract-xfa-items.sh Muttersprache alles.xml' |
10 |
|
|
11 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
12 |
|
|
13 |
|
* tools/formed/formed/model/data.py, |
14 |
|
tools/formed/formed/plugins/web/renderer.py, |
15 |
|
tools/formed/formed/io/document.py: Changed the structure |
16 |
|
of choice constructs. The idea to hold the different items |
17 |
|
of a particular choice in a semicolon separated list was bad. |
18 |
|
Now choices are groups and the option items are modelled as |
19 |
|
embedded bools. (mainly Torsten Irländer's idea). |
20 |
|
|
21 |
|
WARNING: this makes old document files containing choices incompatible!!! |
22 |
|
Use the following XSLT to reestablish compatibility. |
23 |
|
|
24 |
|
* contrib/itemize-choices.xsl: New converts old to new structure. |
25 |
|
Needs exslt.org's string extensions (which xsltproc includes) |
26 |
|
|
27 |
|
* tools/formed/test-data/simple.xml: Ajusted to new structure |
28 |
|
|
29 |
|
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
30 |
|
|
31 |
|
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
32 |
|
node finding code. It now uses the walk() generator, too. |
33 |
|
|
34 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
35 |
|
|
36 |
|
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
37 |
|
copies the currently selected item and appends it after the selection. |
38 |
|
|
39 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
40 |
|
of the tree. |
41 |
|
|
42 |
|
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
43 |
|
|
44 |
|
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
45 |
|
forgot a 'self.' prefix. |
46 |
|
|
47 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
48 |
|
|
49 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
50 |
|
a second document to the current. |
51 |
|
|
52 |
|
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
53 |
|
a second document to be appended to the current. |
54 |
|
|
55 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
56 |
|
|
57 |
|
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
58 |
|
a new document when triggered. |
59 |
|
|
60 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
61 |
|
|
62 |
|
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
63 |
|
items in the document tree. Added a method to eliminated duplicated names |
64 |
|
in document tree. |
65 |
|
|
66 |
|
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
67 |
|
after names collisions are eliminated. |
68 |
|
|
69 |
|
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
70 |
|
'Make names unique'. |
71 |
|
|
72 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
73 |
|
|
74 |
|
* tools/formed/formed/model/data.py, |
75 |
|
tools/formed/formed/plugins/web/renderer.py: Removed support |
76 |
|
for 'text' attributes in bool items. They were never really |
77 |
|
used and the 'description' attributes fulfill the same |
78 |
|
purpose. |
79 |
|
|
80 |
|
* contrib/remove-bool-text.xsl: Transform to remove the |
81 |
|
'text' attributes from bool items. Apply with: |
82 |
|
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
83 |
|
|
84 |
|
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
85 |
|
from bool items. |
86 |
|
|
87 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
88 |
|
|
89 |
|
* contrib/convert-choices.xsl: Simpified. |
90 |
|
|
91 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
92 |
|
|
93 |
|
* tools/formed/formed/model/data.py: Removed 'options' attribute |
94 |
|
from ChoiceLeaf. Use 'value' instead, please! |
95 |
|
|
96 |
|
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
97 |
|
instead of 'options' to render choices. |
98 |
|
|
99 |
|
* contrib/convert-choices.xsl: Added to convert document files |
100 |
|
which use the choice 'option' attribute to usage of 'value'. |
101 |
|
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
102 |
|
|
103 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
104 |
|
|
105 |
|
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
106 |
|
are selected by 'checked' and not by 'selected'. Fixed. |
107 |
|
|
108 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
109 |
|
|
110 |
|
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
111 |
|
initialized with size = 1. |
112 |
|
|
113 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
114 |
|
|
115 |
|
* tools/formed/formed/model/data.py: TextLeafs are now |
116 |
|
initialized with size = 40, maxlength = 60 |
117 |
|
|
118 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
119 |
|
|
120 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
121 |
|
are renderered with description now. |
122 |
|
|
123 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
124 |
|
|
125 |
|
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
126 |
|
for date items. Added missing ids for texts and textareas. |
127 |
|
|
128 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
129 |
|
|
130 |
|
* tools/formed/formed/config.py: Evaluate the environment |
131 |
|
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
132 |
|
|
133 |
|
* tools/formed/formed/plugins/plugin.py: Give a reference |
134 |
|
to the config at setup time. |
135 |
|
|
136 |
|
* tools/formed/formed/plugins/web/plugin.py: To determine |
137 |
|
the port look at FORMED dictionary first. Key is 'web.port'. |
138 |
|
e.g. FORMED='web.port:8888' |
139 |
|
|
140 |
|
* tools/formed/formed/main.py: Call the plugin setup with |
141 |
|
the reference to the config. |
142 |
|
|
143 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
144 |
|
|
145 |
|
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
146 |
|
info tags. Use the 'value' attributes for same purpose now, please! |
147 |
|
|
148 |
|
* tools/formed/formed/model/data.py: removed text attributes from |
149 |
|
InfoLeaf. |
150 |
|
|
151 |
|
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
152 |
|
now uses the 'value' instead of the 'text' attributes. |
153 |
|
|
154 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
155 |
|
|
156 |
|
* tools/formed/formed/model/data.py: next/prevPage() are |
157 |
|
methods of PageNode now. |
158 |
|
|
159 |
|
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
160 |
|
is method of Document now. |
161 |
|
|
162 |
|
* tools/formed/formed/plugins/web/plugin.py: Factored out |
163 |
|
the HTML renderer. |
164 |
|
|
165 |
|
* tools/formed/formed/plugins/web/renderer.py: New: contains |
166 |
|
the HTML renderer now. |
167 |
|
|
168 |
|
* tools/formed/test-data/simple.xml: Fixed typo |
169 |
|
|
170 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
171 |
|
|
172 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
173 |
|
in calculation of width of bounded int fields. |
174 |
|
|
175 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
176 |
|
|
177 |
|
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
178 |
|
|
179 |
|
* tools/formed/formed/model/data.py: Added attributes to IntLeaf |
180 |
|
|
181 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering for |
182 |
|
Ints |
183 |
|
|
184 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
185 |
|
|
186 |
|
* tools/formed/test-data/simple.xml: Added demo textarea |
187 |
|
|
188 |
|
* tools/formed/formed/model/data.py: Added TextAreaLeaf |
189 |
|
|
190 |
|
* tools/formed/formed/io/document.py: register builder |
191 |
|
for loading of textareas |
192 |
|
|
193 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
194 |
|
for textareas. |
195 |
|
|
196 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
197 |
|
|
198 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
199 |
|
|
200 |
|
* tools/formed/formed/model/data.py: Added attributes for texts |
201 |
|
|
202 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
203 |
|
for texts |
204 |
|
|
205 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
206 |
|
|
207 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
208 |
|
|
209 |
|
* tools/formed/formed/model/data.py: Added attributes for choices. |
210 |
|
|
211 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
212 |
|
for choices |
213 |
|
|
214 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
215 |
|
|
216 |
|
* tools/formed/formed/model/data.py, |
217 |
|
tools/formed/formed/model/nodecomponents.py: Added new |
218 |
|
attributes. |
219 |
|
|
220 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
221 |
|
for checkboxes and radio buttons. |
222 |
|
|
223 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
2007-08-08 Sascha L. Teichmann <[email protected]> |
224 |
|
|
225 |
* tools/formed/test-data/simple.xml: Added some descriptions |
* tools/formed/test-data/simple.xml: Added some descriptions |