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