1 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/model/data.py, |
4 |
|
tools/formed/formed/plugins/web/renderer.py, |
5 |
|
tools/formed/formed/io/document.py: Changed the structure |
6 |
|
of choice constructs. The idea to hold the different items |
7 |
|
of a particular choice in a semicolon separated list was bad. |
8 |
|
Now choices are groups and the option items are modelled as |
9 |
|
embedded bools. (mainly Torsten Irländer's idea). |
10 |
|
|
11 |
|
WARNING: this makes old document files containing choices incompatible!!! |
12 |
|
Use the following XSLT to reestablish compatibility. |
13 |
|
|
14 |
|
* contrib/itemize-choices.xsl: New converts old to new structure. |
15 |
|
Needs exslt.org's string extensions (which xsltproc includes) |
16 |
|
|
17 |
|
* tools/formed/test-data/simple.xml: Ajusted to new structure |
18 |
|
|
19 |
|
* tools/formed/formed/plugins/web/plugin.py: remove debug output |
20 |
|
|
21 |
|
* tools/formed/formed/model/nodecomponents.py: fixed a small bug in |
22 |
|
node finding code. It now uses the walk() generator, too. |
23 |
|
|
24 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
25 |
|
|
26 |
|
* tools/formed/formed/main.py: Added a clone item on the toolbar which |
27 |
|
copies the currently selected item and appends it after the selection. |
28 |
|
|
29 |
|
* tools/formed/formed/model/nodecomponents.py: Added code to clone parts |
30 |
|
of the tree. |
31 |
|
|
32 |
|
* tools/formed/formed/ui/controls.py: Added a getSelected method. |
33 |
|
|
34 |
|
* tools/formed/formed/model/misc.py: Fixed a programming bug. |
35 |
|
forgot a 'self.' prefix. |
36 |
|
|
37 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
38 |
|
|
39 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method to append |
40 |
|
a second document to the current. |
41 |
|
|
42 |
|
* tools/formed/formed/main.py: Added an 'Import' file menu item to load |
43 |
|
a second document to be appended to the current. |
44 |
|
|
45 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
46 |
|
|
47 |
|
* tools/formed/formed/main.py: Added a 'New' item in file menu which creates |
48 |
|
a new document when triggered. |
49 |
|
|
50 |
|
2007-08-12 Sascha L. Teichmann <[email protected]> |
51 |
|
|
52 |
|
* tools/formed/formed/model/nodecomponents.py: Added walk generator over all |
53 |
|
items in the document tree. Added a method to eliminated duplicated names |
54 |
|
in document tree. |
55 |
|
|
56 |
|
* tools/formed/formed/model/misc.py: Added update mechanism for id generator |
57 |
|
after names collisions are eliminated. |
58 |
|
|
59 |
|
* tools/formed/formed/main.py: Added an 'Extra' menu with item |
60 |
|
'Make names unique'. |
61 |
|
|
62 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
63 |
|
|
64 |
|
* tools/formed/formed/model/data.py, |
65 |
|
tools/formed/formed/plugins/web/renderer.py: Removed support |
66 |
|
for 'text' attributes in bool items. They were never really |
67 |
|
used and the 'description' attributes fulfill the same |
68 |
|
purpose. |
69 |
|
|
70 |
|
* contrib/remove-bool-text.xsl: Transform to remove the |
71 |
|
'text' attributes from bool items. Apply with: |
72 |
|
'xsltproc contrib/remove-bool-text.xsl old.xml > new.xml' |
73 |
|
|
74 |
|
* tools/formed/test-data/simple.xml: Removed 'text' attributes |
75 |
|
from bool items. |
76 |
|
|
77 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
78 |
|
|
79 |
|
* contrib/convert-choices.xsl: Simpified. |
80 |
|
|
81 |
|
2007-08-11 Sascha L. Teichmann <[email protected]> |
82 |
|
|
83 |
|
* tools/formed/formed/model/data.py: Removed 'options' attribute |
84 |
|
from ChoiceLeaf. Use 'value' instead, please! |
85 |
|
|
86 |
|
* tools/formed/formed/plugins/web/renderer.py: use 'value' attribute |
87 |
|
instead of 'options' to render choices. |
88 |
|
|
89 |
|
* contrib/convert-choices.xsl: Added to convert document files |
90 |
|
which use the choice 'option' attribute to usage of 'value'. |
91 |
|
Apply with e.g. 'xsltproc convert-choices.xsl old.xml > new.xml' |
92 |
|
|
93 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
94 |
|
|
95 |
|
* tools/formed/formed/plugins/web/renderer.py: radio buttons |
96 |
|
are selected by 'checked' and not by 'selected'. Fixed. |
97 |
|
|
98 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
99 |
|
|
100 |
|
* tools/formed/formed/model/data.py: ChoiceLeafs are now |
101 |
|
initialized with size = 1. |
102 |
|
|
103 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
104 |
|
|
105 |
|
* tools/formed/formed/model/data.py: TextLeafs are now |
106 |
|
initialized with size = 40, maxlength = 60 |
107 |
|
|
108 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
109 |
|
|
110 |
|
* tools/formed/formed/plugins/web/renderer.py: Fixed: choices |
111 |
|
are renderered with description now. |
112 |
|
|
113 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
114 |
|
|
115 |
|
* tools/formed/formed/plugins/web/renderer.py: Added rendering |
116 |
|
for date items. Added missing ids for texts and textareas. |
117 |
|
|
118 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
119 |
|
|
120 |
|
* tools/formed/formed/config.py: Evaluate the environment |
121 |
|
variable 'FORMED'. Snytax: FORMED='key1:value1;key2:value2' |
122 |
|
|
123 |
|
* tools/formed/formed/plugins/plugin.py: Give a reference |
124 |
|
to the config at setup time. |
125 |
|
|
126 |
|
* tools/formed/formed/plugins/web/plugin.py: To determine |
127 |
|
the port look at FORMED dictionary first. Key is 'web.port'. |
128 |
|
e.g. FORMED='web.port:8888' |
129 |
|
|
130 |
|
* tools/formed/formed/main.py: Call the plugin setup with |
131 |
|
the reference to the config. |
132 |
|
|
133 |
|
2007-08-10 Sascha L. Teichmann <[email protected]> |
134 |
|
|
135 |
|
* tools/formed/test-data/simple.xml: removed 'text' attributes from |
136 |
|
info tags. Use the 'value' attributes for same purpose now, please! |
137 |
|
|
138 |
|
* tools/formed/formed/model/data.py: removed text attributes from |
139 |
|
InfoLeaf. |
140 |
|
|
141 |
|
* tools/formed/formed/plugins/web/renderer.py: Rendering of info |
142 |
|
now uses the 'value' instead of the 'text' attributes. |
143 |
|
|
144 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
145 |
|
|
146 |
|
* tools/formed/formed/model/data.py: next/prevPage() are |
147 |
|
methods of PageNode now. |
148 |
|
|
149 |
|
* tools/formed/formed/model/nodecomponents.py: findByClassAndName() |
150 |
|
is method of Document now. |
151 |
|
|
152 |
|
* tools/formed/formed/plugins/web/plugin.py: Factored out |
153 |
|
the HTML renderer. |
154 |
|
|
155 |
|
* tools/formed/formed/plugins/web/renderer.py: New: contains |
156 |
|
the HTML renderer now. |
157 |
|
|
158 |
|
* tools/formed/test-data/simple.xml: Fixed typo |
159 |
|
|
160 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
161 |
|
|
162 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixed a bug |
163 |
|
in calculation of width of bounded int fields. |
164 |
|
|
165 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
166 |
|
|
167 |
|
* tools/formed/test-data/simple.xml: Make demo Int fancier. |
168 |
|
|
169 |
|
* tools/formed/formed/model/data.py: Added attributes to IntLeaf |
170 |
|
|
171 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering for |
172 |
|
Ints |
173 |
|
|
174 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
175 |
|
|
176 |
|
* tools/formed/test-data/simple.xml: Added demo textarea |
177 |
|
|
178 |
|
* tools/formed/formed/model/data.py: Added TextAreaLeaf |
179 |
|
|
180 |
|
* tools/formed/formed/io/document.py: register builder |
181 |
|
for loading of textareas |
182 |
|
|
183 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
184 |
|
for textareas. |
185 |
|
|
186 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
187 |
|
|
188 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
189 |
|
|
190 |
|
* tools/formed/formed/model/data.py: Added attributes for texts |
191 |
|
|
192 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
193 |
|
for texts |
194 |
|
|
195 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
196 |
|
|
197 |
|
* tools/formed/test-data/simple.xml: Make demo choice fancier. |
198 |
|
|
199 |
|
* tools/formed/formed/model/data.py: Added attributes for choices. |
200 |
|
|
201 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
202 |
|
for choices |
203 |
|
|
204 |
|
2007-08-09 Sascha L. Teichmann <[email protected]> |
205 |
|
|
206 |
|
* tools/formed/formed/model/data.py, |
207 |
|
tools/formed/formed/model/nodecomponents.py: Added new |
208 |
|
attributes. |
209 |
|
|
210 |
|
* tools/formed/formed/plugins/web/plugin.py: Added rendering |
211 |
|
for checkboxes and radio buttons. |
212 |
|
|
213 |
2007-08-08 Sascha L. Teichmann <[email protected]> |
2007-08-08 Sascha L. Teichmann <[email protected]> |
214 |
|
|
215 |
* tools/formed/test-data/simple.xml: Added some descriptions |
* tools/formed/test-data/simple.xml: Added some descriptions |