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