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]> |
2010-08-10 Torsten Irländer <[email protected]> |
177 |
|
|
178 |
* contrib/diff_formed.py: New helperscript to diff to given |
* contrib/diff_formed.py: New helperscript to diff to given |