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