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