1 |
|
2011-01-19 Torsten Irlaender <[email protected]> |
2 |
|
|
3 |
|
* formed/formed/plugins/export/new_sql.py |
4 |
|
(SchemaCreator._createChoice): Fix traversing choicelists wich |
5 |
|
conditional nodes. |
6 |
|
|
7 |
|
2011-01-11 Torsten Irlaender <[email protected]> |
8 |
|
|
9 |
|
* formed/formed/model/exprtree.py: Added List-Node and Contains |
10 |
|
function. |
11 |
|
|
12 |
|
2010-12-27 Torsten Irlaender <[email protected]> |
13 |
|
|
14 |
|
* formed/formed/model/data.py (WidgetCollector.visitor): Removed |
15 |
|
clause to ignore Repeatgroups. |
16 |
|
|
17 |
|
2010-12-13 Torsten Irlaender <[email protected]> |
18 |
|
|
19 |
|
* formed/formed/model/data.py (GroupNode.isRepeat): Issue1565: Fixed |
20 |
|
isRepeat function. Check typ instead of repeat attribute. Removed |
21 |
|
setRepeat function (not used anywhere) |
22 |
|
|
23 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
24 |
|
|
25 |
|
* formed/formed/plugins/export/rules_sh.py (generate_tagging): |
26 |
|
Remove unused variable "inserts" and corresponding commented out |
27 |
|
code. |
28 |
|
|
29 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* formed/formed/plugins/export/rules_sh.py: Remove some commented |
32 |
|
out code. |
33 |
|
|
34 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
* formed/formed/plugins/export/rules_sh.py: expand star-import. |
37 |
|
|
38 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
39 |
|
|
40 |
|
* formed/formed/plugins/export/rules_sh.py (sql_OperatorUnary): |
41 |
|
Put parentheses around the comparison for the KNOWN operator in |
42 |
|
the generated SQL to ensure correct evaluation order. |
43 |
|
|
44 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
* formed/formed/plugins/export/rules_sh.py (binary_operator_map): |
47 |
|
New. Map binary formed expr operators to their SQL counterparts. |
48 |
|
(sql_OperatorBinary): Use binary_operator_map instead of a cascade |
49 |
|
of if-statements with lots of code duplication. Also, put |
50 |
|
parentheses around the resulting SQL expression to make sure the |
51 |
|
expression is correctly. This fixes a problem with WASKO tagging |
52 |
|
rules, where the a FormEd expression of the form like "2 1 1980 |
53 |
|
date 1 1 1980 date - 93 *" would be incorrectly converted to the |
54 |
|
SQL expression "93 * '1980-01-02'::date - '1980-01-01'::date" |
55 |
|
|
56 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
57 |
|
|
58 |
|
* formed/formed/plugins/export/rules_sh.py: Fix formatting. |
59 |
|
|
60 |
|
2010-11-15 Torsten Irlaender <[email protected]> |
61 |
|
|
62 |
|
* formed/formed/model/data.py: Do not set attribute "repeat" for |
63 |
|
Repeat-Groups. |
64 |
|
|
65 |
|
2010-11-10 Torsten Irlaender <[email protected]> |
66 |
|
|
67 |
|
* formed/formed/plugins/modify/rules.py: Fixed date sequence rule |
68 |
|
checks for date in future. |
69 |
|
|
70 |
|
2010-11-08 Roland Geider <[email protected]> |
71 |
|
|
72 |
|
* formed/formed/plugins/export/xsd.py: validate formedtree.xml |
73 |
|
|
74 |
|
2010-11-08 Roland Geider <[email protected]> |
75 |
|
|
76 |
|
* formed/formed/model/data.py, |
77 |
|
formed/formed/plugins/export/xsd.py, |
78 |
|
formed/formed/config.py: issue1131: generate XSD for case exports |
79 |
|
|
80 |
|
2010-10-21 Torsten Irlaender <[email protected]> |
81 |
|
|
82 |
|
* formed/formed/plugins/export/rules_sh.py: Added new LE-Operator |
83 |
|
* formed/formed/plugins/modify/rules.py: Add error rule to force phase |
84 |
|
relevant datefields not to be "unknown". |
85 |
|
|
86 |
|
2010-10-12 Roland Geider <[email protected]> |
87 |
|
|
88 |
|
* formed/formed/plugins/export/rules_sh.py: Ignore rules if any fields |
89 |
|
in the rule are in a repeat group |
90 |
|
|
91 |
|
2010-10-11 Roland Geider <[email protected]> |
92 |
|
|
93 |
|
* formed/plugins/export/rules_sh.py: Added support to more opperators |
94 |
|
to be able to export the WASKO case |
95 |
|
|
96 |
|
2010-10-06 Torsten Irlaender <[email protected]> |
97 |
|
|
98 |
|
* formed/formed/plugins/export/rules_sh.py (generate_tagging): Fixed |
99 |
|
gerating SQL for Rules |
100 |
|
* formed/formed/plugins/export/rules_sh.py (sql_date): Fixed sql_date |
101 |
|
function. |
102 |
|
|
103 |
|
2010-10-05 Torsten Irländer <[email protected]> |
104 |
|
|
105 |
|
* formed/formed/model/data.py: Fixed error when setting tag attribute. |
106 |
|
* formed/formed/plugins/export/rules_sh.py: Added generating exporting |
107 |
|
tagging-xml |
108 |
|
* formed/formed/plugins/modify/rules.py: Do not generate automatic |
109 |
|
tagids for rules. |
110 |
|
|
111 |
|
2010-10-04 Torsten Irländer <[email protected]> |
112 |
|
|
113 |
|
* formed/formed/model/data.py (RuleLeaf.__init__): Added new attribute |
114 |
|
"tag" for rule-leafs |
115 |
|
* formed/formed/config.py: Added export rules as XML to Menu |
116 |
|
* formed/formed/plugins/modify/rules.py |
117 |
|
(GenerateRequiredRules.generateDateSequenceRules): Generate automatic |
118 |
|
tag ids for date-sequence rules |
119 |
|
|
120 |
|
2010-09-30 Torsten Irländer <[email protected]> |
121 |
|
|
122 |
|
* formed/formed/plugins/export/rules_sh.py |
123 |
|
(ExportRulesAsSH.doExport): Filter out duplicted rules. |
124 |
|
|
125 |
|
2010-09-20 Frank Koormann <[email protected]> |
126 |
|
|
127 |
|
* formed/formed/plugins/export/latex.py (RecursiveExporter): |
128 |
|
Add "required"-field information to output and include |
129 |
|
choice list contents. |
130 |
|
|
131 |
|
2010-09-16 Bernhard Herzog <[email protected]> |
132 |
|
|
133 |
|
Avoid database deadlocks that can happen when database clients try |
134 |
|
to work with the same case using two separate database |
135 |
|
connections. See mpuls/issue1145 for details. |
136 |
|
|
137 |
|
* formed/formed/plugins/export/rg_sql.py (SQL_TEMPLATE): Split the |
138 |
|
computation of the new json structure description into the new |
139 |
|
database function compute_case_structure |
140 |
|
(TRIGGER_TMPL): Change the trigger functions to immediately update |
141 |
|
the cached json structure description instead of just setting the |
142 |
|
modified flag. This avoids the lazy recomputation that makes what |
143 |
|
seems like a read-only access (calling get_case_structure) into a |
144 |
|
writing access (updates of the cache). The writes lock the row in |
145 |
|
the case_structure table which prevent other connections from |
146 |
|
accessing the same case. As part of this, the delete triggers are |
147 |
|
now AFTER triggers because the repeat groups instance must have |
148 |
|
been removed when the structure is recomputed. |
149 |
|
(SUBSELECT_TMPL): Since the delete trigger is now an after |
150 |
|
trigger, we need to change the way the master id is computed. We |
151 |
|
cannot join with the repeatgroup table in question because the row |
152 |
|
has already been deleted. However, we can use the master_id |
153 |
|
column of the OLD row to select the row of the parent table. |
154 |
|
(create_triggers): Avoid the inner joins with the current repeat |
155 |
|
group for the above mentioned reasons. In the very common case of |
156 |
|
repeat groups which are direct children of the master_tbl, we can |
157 |
|
compare the master_tbl.id directly with the row's master_id. |
158 |
|
|
159 |
|
2010-09-14 Roland Geider <[email protected]> |
160 |
|
|
161 |
|
* formed/formed/plugins/export/xsd.py: issue1131: update XSD for new |
162 |
|
formedtree structure |
163 |
|
|
164 |
|
2010-09-01 Roland Geider <[email protected]> |
165 |
|
|
166 |
|
* formed/formed/plugins/modify/rules.py: issue1050: mandatory fields |
167 |
|
appearing double. |
168 |
|
The problem was that the way the formEditor handled fields with |
169 |
|
manually created rules changed. Instead of ignoring fields (very |
170 |
|
early behaviour) or always generating them (early behaviour), now the |
171 |
|
formED will only ignore fields with rules which name starts with |
172 |
|
'required-rule-manual'. This is helpful when the rules for mandatory |
173 |
|
fields are more complex (e.g. mother's name is only required if |
174 |
|
mother is known). |
175 |
|
|
176 |
|
2010-08-10 Torsten Irländer <[email protected]> |
177 |
|
|
178 |
|
* contrib/diff_formed.py: New helperscript to diff to given |
179 |
|
formedtrees |
180 |
|
|
181 |
|
2010-08-09 Roland Geider <[email protected]> |
182 |
|
|
183 |
|
* formed/model/exprtree.py: fixed typo |
184 |
|
|
185 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
186 |
|
|
187 |
|
* formed/po/de_DE.po: Update translations |
188 |
|
|
189 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
190 |
|
|
191 |
|
* formed/po/formed.pot: Regenerated. |
192 |
|
|
193 |
|
* formed/po/de_DE.po: Update. |
194 |
|
|
195 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
196 |
|
|
197 |
|
* formed/po/Makefile: Use correct filename of the pot-file in the |
198 |
|
usage message |
199 |
|
|
200 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
201 |
|
|
202 |
|
* formed/po/Makefile (LIST_POTFILES): Sort the file names to make |
203 |
|
the order of entries in the .pot-file more predictable. |
204 |
|
|
205 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
206 |
|
|
207 |
|
* formed/formed/model/nodecomponents.py (RootNode.__init__) |
208 |
|
(RootNode.getVersion, RootNode.setVersion): Add attribute |
209 |
|
"version" and accessor methods. |
210 |
|
|
211 |
|
* formed/formed/main.py (MainFrame.OnSetDocumentVersion): New. Let |
212 |
|
the user set the document version. |
213 |
|
(MainFrame._createMenuBar): Add menu item for OnSetDocumentVersion |
214 |
|
|
215 |
|
2010-08-02 Bernhard Herzog <[email protected]> |
216 |
|
|
217 |
|
* formed/formed.py, formed/formed/io/document.py, |
218 |
|
formed/formed/io/factories.py, formed/formed/io/parser.py, |
219 |
|
formed/formed/model/data.py, formed/formed/model/event.py, |
220 |
|
formed/formed/model/expr.py, formed/formed/model/exprtree.py, |
221 |
|
formed/formed/model/memory.py, formed/formed/model/misc.py, |
222 |
|
formed/formed/model/nodecomponents.py, |
223 |
|
formed/formed/model/persistent.py: Fix coding declaration to be |
224 |
|
acceptable to both python and Emacs. |
225 |
|
|
226 |
|
2010-07-29 Torsten Irländer <[email protected]> |
227 |
|
|
228 |
|
* formed/formed/model/data.py: Added "invisible" attribute to |
229 |
|
BoolLeafs. This can be used to hide options in choicelists. so the |
230 |
|
user can not select the value in the user interface. But the db will |
231 |
|
have this option so is ist still present in the db an can be used |
232 |
|
* formed/formed/model/exprtree.py: Added "days" function. |
233 |
|
|
234 |
|
2010-07-26 Roland Geider <[email protected]> |
235 |
|
|
236 |
|
* formed/formed/model/nodecomponents.py, |
237 |
|
formed/formed/plugins/modify/rules.py: generated date rules take |
238 |
|
into consideration repeat groups |
239 |
|
|
240 |
|
2010-07-21 Torsten Irländer <[email protected]> |
241 |
|
|
242 |
|
Issue870 |
243 |
|
|
244 |
|
* formed/formed/plugins/modify/rules.py (descriptions): Do not collect |
245 |
|
all headers to the referenced fields. Only list labels of the error |
246 |
|
fields, which should be distinct enough. |
247 |
|
|
248 |
|
Issue851 |
249 |
|
|
250 |
|
* formed/formed/model/data.py |
251 |
|
formed/formed/plugins/export/new_sql.py |
252 |
|
formed/formed/plugins/web/view_renderer.py |
253 |
|
formed/formed/io/document.py |
254 |
|
formed/formed/config.py: Added Float-Field to Formed |
255 |
|
|
256 |
|
2010-06-11 Bernhard Herzog <[email protected]> |
257 |
|
|
258 |
|
* formed/formed/plugins/export/rg_sql.py |
259 |
|
(CREATE_DELETE_MASTER_TMPL): In create_master_tbl, call |
260 |
|
create_master_ds to create the master tbl entry. This way we can |
261 |
|
add SQL code that's specific to an MPuls instance to |
262 |
|
create_master_ds and still have create_master_tbl use that new |
263 |
|
code. This is useful for e.g. the JMD-Struktur part. |
264 |
|
|
265 |
|
2010-06-02 Roland Geider <[email protected]> |
266 |
|
|
267 |
|
* formed/formed/plugins/modify/rules.py: make the names of generated |
268 |
|
date-sequence-rules unique |
269 |
|
|
270 |
|
2010-06-02 Roland Geider <[email protected]> |
271 |
|
|
272 |
|
* formed/plugins/export/xls.py: updated regular expression |
273 |
|
|
274 |
|
2010-05-17 Frank Koormann <[email protected]> |
275 |
|
|
276 |
|
* formed/formed/plugins/export/latex.py: Improved section labeling. |
277 |
|
|
278 |
|
* formed/formed/plugins/export/xls.py: |
279 |
|
Export references (ie where are the lists used). |
280 |
|
|
281 |
|
2010-04-30 Torsten Irländer <[email protected]> |
282 |
|
|
283 |
|
* formed/formed/plugins/modify/rules.py (VariableType.substitute): Do |
284 |
|
not generate "%"-rules for required fields in repeat-groups. |
285 |
|
|
286 |
|
2010-04-28 Roland Geider <[email protected]> |
287 |
|
|
288 |
|
* formed/plugins/export/xls.py: Radiogroups are exported |
289 |
|
* formed/plugins/export/xsd.py: WASKA formedtree.xml validates XSD |
290 |
|
JMD formedtree.xml validates XSD |
291 |
|
|
292 |
|
2010-04-08 Torsten Irländer <[email protected]> |
293 |
|
|
294 |
|
* formed/formed/plugins/modify/rules.py |
295 |
|
(GenerateRequiredRules.generateDateSequenceRules): Add error mark to |
296 |
|
rules. Generete each rule twice to be able to render errors at both |
297 |
|
datefields. |
298 |
|
|
299 |
|
2010-04-07 Torsten Irländer <[email protected]> |
300 |
|
|
301 |
|
* formed/formed/plugins/export/rg_sql.py: Added "Revision"-Tag. |
302 |
|
|
303 |
|
2010-04-06 Torsten Irländer <[email protected]> |
304 |
|
|
305 |
|
* formed/formed/io/document.py (_toXML): Added comment with |
306 |
|
"$Revision"-tag. This tag will/can then be substituted by the VCS. |
307 |
|
* formed/formed/plugins/export/new_sql.py |
308 |
|
(ExportAsSQLFilter.doExport): Added comment with |
309 |
|
"$Revision"-tag. This tag will/can then be substituted by the VCS. |
310 |
|
* formed/formed/model/exprtree.py: Added years operator. |
311 |
|
|
312 |
|
2010-03-30 Roland Geider <[email protected]> |
313 |
|
|
314 |
|
* formed/formed/plugins/export/latex.py: Added filter |
315 |
|
|
316 |
|
2010-03-25 Roland Geider <[email protected]> |
317 |
|
|
318 |
|
* formed/formed/plugins/export/xsd.py: Generate valid XML |
319 |
|
|
320 |
|
2010-02-11 Frank Koormann <[email protected]> |
321 |
|
|
322 |
|
* formed/formed/plugins/export/xls.py: Allow groups in choices. |
323 |
|
|
324 |
|
2009-12-02 Torsten Irländer <[email protected]> |
325 |
|
|
326 |
|
* formed/formed/plugins/export/typemap.py: do not ignore conditional |
327 |
|
nodes on traversal. |
328 |
|
|
329 |
|
2009-11-17 Sascha L. Teichmann <[email protected]> |
330 |
|
|
331 |
|
* formed/formed/model/exprtree.py: Recognize '%' vars |
332 |
|
in compilation. Does not eval it! |
333 |
|
|
334 |
|
* formed/formed/plugins/modify/rules.py: Generate '%' vars |
335 |
|
for variables in repeat groups. |
336 |
|
|
337 |
|
2009-11-13 Sascha L. Teichmann <[email protected]> |
338 |
|
|
339 |
|
* formed/formed/plugins/export/typemap.py: Fixed to work |
340 |
|
with new repeat group nodes. |
341 |
|
|
342 |
2009-10-28 Sascha L. Teichmann <[email protected]> |
2009-10-28 Sascha L. Teichmann <[email protected]> |
343 |
|
|
344 |
* formed/formed/plugins/export/xsd.py, |
* formed/formed/plugins/export/xsd.py, |