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