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