1 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
2 |
|
|
3 |
|
* tools/formed/formed/plugins/web/plugin.py, |
4 |
|
tools/formed/formed/plugins/web/error_renderer.py: Added interface |
5 |
|
to get the errors for a whole page in te formular. These errors can |
6 |
|
now be displayed on the top of the formular. |
7 |
|
|
8 |
|
2007-08-29 Torsten Irlaender <[email protected]> |
9 |
|
|
10 |
|
* tools/formed/formed/plugins/web/renderer.py: Finished implementation |
11 |
|
of the getFromData interface and prepared the rederer for generating |
12 |
|
nice error messages |
13 |
|
|
14 |
|
2007-08-28 Frank Koormann <[email protected]> |
15 |
|
|
16 |
|
* tools/formed/formed/plugins/export/sql.py |
17 |
|
(SchemaCreator.createSchema, SchemaCreator._createGroup): |
18 |
|
Fixed typo in created DDS (PRIMRAY -> PRIMARY) |
19 |
|
|
20 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
21 |
|
|
22 |
|
* tools/formed/formed/plugins/export/sql.py: Added small helper |
23 |
|
function to generated valid quotes within the sql statements |
24 |
|
|
25 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
26 |
|
|
27 |
|
* tools/formed/formed/plugins/export/sql.py: Added foreign keys |
28 |
|
for repeat tables. |
29 |
|
|
30 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
31 |
|
|
32 |
|
* tools/formed/formed/plugins/export/sql.py: When generating |
33 |
|
an extra table check in a table of same content exists. In |
34 |
|
this case reference the existing table. |
35 |
|
|
36 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
37 |
|
|
38 |
|
* tools/formed/formed/plugins/export/sql.py: Rewritten to produce |
39 |
|
_real_ SQL and respect repeat groups. |
40 |
|
|
41 |
|
* tools/formed/formed/model/data.py: Fixed bug with Group.isRepeat() |
42 |
|
|
43 |
|
* tools/formed/formed/plugins/web/renderer.py: Use "".join([]) |
44 |
|
instead of expensive += string concat in some places. |
45 |
|
|
46 |
|
2007-08-29 Sascha L. Teichmann <[email protected]> |
47 |
|
|
48 |
|
* tools/formed/formed/model/data.py: Renamed GroupNode.getRepeat() |
49 |
|
to .isRepeat and return a bool. Fixed a bug in Page.allWidgets(). |
50 |
|
|
51 |
|
2007-08-28 Torsten Irlaender <[email protected]> |
52 |
|
|
53 |
|
* tools/formed/plugins/web/renderer.py: Added Formdata interface. |
54 |
|
* tools/formed/model/data.py: Implements Formadata interface to |
55 |
|
textfields. Fieldset generated depends now on the "invisible" |
56 |
|
attribute of the groupnode. Field-label generation slightly changed. |
57 |
|
Added error indication to textfields |
58 |
|
|
59 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
60 |
|
|
61 |
|
* tools/formed/formed/model/data.py, |
62 |
|
tools/formed/formed/io/document.py: Removed support |
63 |
|
of logical groups. |
64 |
|
|
65 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
66 |
|
|
67 |
|
* tools/formed/formed/io/document.py: Avoid saving empty |
68 |
|
attributes. |
69 |
|
|
70 |
|
* tools/formed/test-data/simple.xml: Applied. |
71 |
|
|
72 |
|
2007-08-28 Sascha L. Teichmann <[email protected]> |
73 |
|
|
74 |
|
* tools/formed/formed/model/data.py: Added 'repeat' and |
75 |
|
'invisible' attributes to group. TODO: remove logical group. |
76 |
|
|
77 |
|
2007-08-27 Torsten Irlaender <[email protected]> |
78 |
|
|
79 |
|
* tools/formed/plugins/web/plugin.py, |
80 |
|
tools/formed/plugins/web/renderer.py: Started to include stylesheet |
81 |
|
depending tags in the html generation. |
82 |
|
|
83 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
84 |
|
|
85 |
|
* tools/formed/formed/model/data.py, |
86 |
|
tools/formed/formed/io/document.py: Added a logical group. |
87 |
|
It has an attribute 'repeat' to indicate that it might |
88 |
|
be worthy an external table in DB schema. |
89 |
|
|
90 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
91 |
|
|
92 |
|
* tools/formed/formed/plugins/web/plugin.py: Support |
93 |
|
serving of static content. |
94 |
|
|
95 |
|
* tools/formed/formed/plugins/web/server.py: Removed |
96 |
|
old send code. |
97 |
|
|
98 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
99 |
|
|
100 |
|
* tools/formed/formed/plugins/web/plugin.py: Use new |
101 |
|
Response object. Fix typo. |
102 |
|
|
103 |
|
* tools/formed/formed/plugins/web/server.py: support |
104 |
|
response object to serve different MIME types. |
105 |
|
|
106 |
|
2007-08-27 Sascha L. Teichmann <[email protected]> |
107 |
|
|
108 |
|
* tools/formed/formed/plugins/web/plugin.py: Add web.path |
109 |
|
to FORMED environment variable to specify the |
110 |
|
root of the static content. |
111 |
|
|
112 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
113 |
|
|
114 |
|
* tools/formed/formed/model/data.py, |
115 |
|
tools/formed/formed/model/nodecomponents.py: Fixed mode issues. |
116 |
|
|
117 |
|
* tools/formed/formed/plugins/web/www, |
118 |
|
tools/formed/formed/plugins/web/www/main.tmpl: New. Contains |
119 |
|
a template for the HTML output. |
120 |
|
|
121 |
|
* tools/formed/formed/plugins/web/plugin.py: Fixes several smaller |
122 |
|
mode issues. Introduces CSS support. Simplified the action |
123 |
|
handling. |
124 |
|
|
125 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed the |
126 |
|
nagivation code. |
127 |
|
|
128 |
|
* tools/formed/formed/plugins/web/server.py: Added missing import. |
129 |
|
|
130 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
131 |
|
|
132 |
|
* tools/formed/formed/model/data.py: Added missing broadcast |
133 |
|
parameter to setAttribute() of RuleLeaf. |
134 |
|
|
135 |
|
* tools/formed/formed/plugins/web/plugin.py: Factorize |
136 |
|
HTTP server code out to separate module. |
137 |
|
|
138 |
|
* tools/formed/formed/plugins/web/renderer.py: Removed |
139 |
|
needless -1 from pop() |
140 |
|
|
141 |
|
* tools/formed/formed/plugins/web/server.py: New. Contains |
142 |
|
the HTTP server code now. |
143 |
|
|
144 |
|
2007-08-26 Sascha L. Teichmann <[email protected]> |
145 |
|
|
146 |
|
* tools/formed/test-data/simple.xml: Modified to contain a rule. |
147 |
|
|
148 |
|
* tools/formed/formed/model/expr.py: Added. A simple RPN |
149 |
|
expression evaluator. To avoid the problem of eval()ing |
150 |
|
arbitrary python expressions I've decided to use a very |
151 |
|
basic and limited stack machine to support rule checking. |
152 |
|
|
153 |
|
* tools/formed/formed/model/data.py: Added a RuleLeaf. |
154 |
|
|
155 |
|
* tools/formed/formed/io/document.py: Added factories for rules. |
156 |
|
|
157 |
|
* tools/formed/formed/model/nodecomponents.py: Add a method |
158 |
|
to find all items of a given type in document for a given |
159 |
|
mode. Usefull to find all rules in the tree. |
160 |
|
|
161 |
|
* tools/formed/formed/ui/controls.py: Added a listener mechanism |
162 |
|
to attribute table to report exceptions when setting a value |
163 |
|
from GUI. Useful to report compilation errors when setting |
164 |
|
expr of rule leafs. |
165 |
|
|
166 |
|
* tools/formed/formed/main.py: Added a method to track exceptions |
167 |
|
from the attribute table and pop up dialogs if they occur. |
168 |
|
Added a counter of rule modifications in tree. Useful if you |
169 |
|
want build cached data structures like rule sets and you want |
170 |
|
to know if they are still valid. |
171 |
|
|
172 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
173 |
|
|
174 |
|
* tools/formed/formed/plugins/export/sql.py: Fixed CHECK-constraint |
175 |
|
for checkbox values. (Syntax error). |
176 |
|
|
177 |
|
* tools/formed/formed/plugins/names/filter.py: Fixes in formularname |
178 |
|
generation |
179 |
|
|
180 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
181 |
|
|
182 |
|
* tools/formed/formed/plugins/names/filter.py: Separated Class for |
183 |
|
making the formularnames more database friendly. Added some more |
184 |
|
checks. |
185 |
|
* tools/formed/formed/plugins/export/sql.py: Make use of the fresh |
186 |
|
separated class, and some fixes in sql generation. |
187 |
|
|
188 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
189 |
|
|
190 |
|
* tools/formed/formed/plugins/export/html.py: Print lengths |
191 |
|
of external choice list. |
192 |
|
|
193 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
194 |
|
|
195 |
|
* tools/formed/formed/main.py: Little workaround for |
196 |
|
mode selection if someone adds an removes a mode. |
197 |
|
|
198 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
199 |
|
|
200 |
|
* tools/formed/test-data/simple.xml: Better test case for |
201 |
|
mode depended leaf items. |
202 |
|
|
203 |
|
* tools/formed/formed/model/nodecomponents.py: Added a method |
204 |
|
to calculate the effective mode of an item. |
205 |
|
|
206 |
|
* tools/formed/formed/plugins/export/html.py: Use effective |
207 |
|
mode. TODO: the 'all' modus return false results sometimes. |
208 |
|
Cause: The modes are only cumulated over time. Removal is |
209 |
|
not done. |
210 |
|
|
211 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
212 |
|
|
213 |
|
* tools/formed/formed/plugins/export/html.py: Dump the items |
214 |
|
of radio groups and choices too. |
215 |
|
|
216 |
|
2007-08-24 Torsten Irlaender <[email protected]> |
217 |
|
|
218 |
|
* tools/formed/formed/plugins/names/filter.py: Modified the renaming |
219 |
|
by formular names to make the naming more database friendly. |
220 |
|
Now only alphanumeric and underscore chars is allowed. |
221 |
|
|
222 |
|
2007-08-24 Sascha L. Teichmann <[email protected]> |
223 |
|
|
224 |
|
* tools/formed/formed/plugins/export/html.py: Tweaked |
225 |
|
HTML table exporter a bit to be on par with the XSLT |
226 |
|
script. TODO: Dump items in radio and choice groups. |
227 |
|
|
228 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
229 |
|
|
230 |
|
* tools/formed/formed/plugins/names/filter.py: Removed |
231 |
|
HTML and SQL exporters. |
232 |
|
|
233 |
|
* tools/formed/formed/plugins/export, |
234 |
|
tools/formed/formed/plugins/export/__init__.py, |
235 |
|
tools/formed/formed/plugins/export/sql.py, |
236 |
|
tools/formed/formed/plugins/export/html.py: New: Contain |
237 |
|
the HTML and the SQL exporters now. |
238 |
|
|
239 |
|
* tools/formed/formed/config.py: Use exporters from different |
240 |
|
package now. |
241 |
|
|
242 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
243 |
|
|
244 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
245 |
|
pseudo SQL export filters. TODO: Move HTML and SQL filter |
246 |
|
in a new file (formed/plugins/export/htmlexport.py and |
247 |
|
sqlexport.py?) |
248 |
|
|
249 |
|
* tools/formed/formed/config.py: Install the new SQL filter. |
250 |
|
|
251 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
252 |
|
|
253 |
|
* tools/formed/formed/model/nodecomponents.py: Added a depth() |
254 |
|
method to determine the depth of particular tree item. |
255 |
|
|
256 |
|
* tools/formed/formed/plugins/names/filter.py: Added an |
257 |
|
HTML export filters. TODO: needs more work. |
258 |
|
|
259 |
|
* tools/formed/formed/config.py: Install the new HTML filter. |
260 |
|
|
261 |
|
2007-08-23 Torsten Irlaender <[email protected]> |
262 |
|
|
263 |
|
* contrib/extract-xfa-fields_and_options.xsl: Added small xsl script |
264 |
|
to extract fields and options in the XFA Data in teh PDF. This |
265 |
|
script might me handy to indicate changes between the different |
266 |
|
formular versions. |
267 |
|
|
268 |
|
2007-08-23 Sascha L. Teichmann <[email protected]> |
269 |
|
|
270 |
|
* tools/formed/formed/main.py: Add an 'all' mode to |
271 |
|
select all modes. ;-) |
272 |
|
|
273 |
|
2007-08-22 Sascha L. Teichmann <[email protected]> |
274 |
|
|
275 |
|
* tools/formed/test-data/simple.xml, |
276 |
|
tools/formed/formed/model/data.py, |
277 |
|
tools/formed/formed/plugins/web/plugin.py, |
278 |
|
tools/formed/formed/plugins/web/renderer.py, |
279 |
|
tools/formed/formed/io/document.py, |
280 |
|
tools/formed/formed/main.py: Removed support for switch nodes. |
281 |
|
BEWARE: This breaks compatibility with older documents! |
282 |
|
|
283 |
2007-08-22 Sascha L. Teichmann <[email protected]> |
2007-08-22 Sascha L. Teichmann <[email protected]> |
284 |
|
|
285 |
* tools/formed/formed/plugins/web/plugin.py: Uses the |
* tools/formed/formed/plugins/web/plugin.py: Uses the |