1 |
|
2010-12-13 Torsten Irlaender <[email protected]> |
2 |
|
|
3 |
|
* formed/formed/model/data.py (GroupNode.isRepeat): Issue1565: Fixed |
4 |
|
isRepeat function. Check typ instead of repeat attribute. Removed |
5 |
|
setRepeat function (not used anywhere) |
6 |
|
|
7 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* formed/formed/plugins/export/rules_sh.py (generate_tagging): |
10 |
|
Remove unused variable "inserts" and corresponding commented out |
11 |
|
code. |
12 |
|
|
13 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
14 |
|
|
15 |
|
* formed/formed/plugins/export/rules_sh.py: Remove some commented |
16 |
|
out code. |
17 |
|
|
18 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
19 |
|
|
20 |
|
* formed/formed/plugins/export/rules_sh.py: expand star-import. |
21 |
|
|
22 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
23 |
|
|
24 |
|
* formed/formed/plugins/export/rules_sh.py (sql_OperatorUnary): |
25 |
|
Put parentheses around the comparison for the KNOWN operator in |
26 |
|
the generated SQL to ensure correct evaluation order. |
27 |
|
|
28 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
29 |
|
|
30 |
|
* formed/formed/plugins/export/rules_sh.py (binary_operator_map): |
31 |
|
New. Map binary formed expr operators to their SQL counterparts. |
32 |
|
(sql_OperatorBinary): Use binary_operator_map instead of a cascade |
33 |
|
of if-statements with lots of code duplication. Also, put |
34 |
|
parentheses around the resulting SQL expression to make sure the |
35 |
|
expression is correctly. This fixes a problem with WASKO tagging |
36 |
|
rules, where the a FormEd expression of the form like "2 1 1980 |
37 |
|
date 1 1 1980 date - 93 *" would be incorrectly converted to the |
38 |
|
SQL expression "93 * '1980-01-02'::date - '1980-01-01'::date" |
39 |
|
|
40 |
|
2010-11-24 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
* formed/formed/plugins/export/rules_sh.py: Fix formatting. |
43 |
|
|
44 |
|
2010-11-15 Torsten Irlaender <[email protected]> |
45 |
|
|
46 |
|
* formed/formed/model/data.py: Do not set attribute "repeat" for |
47 |
|
Repeat-Groups. |
48 |
|
|
49 |
|
2010-11-10 Torsten Irlaender <[email protected]> |
50 |
|
|
51 |
|
* formed/formed/plugins/modify/rules.py: Fixed date sequence rule |
52 |
|
checks for date in future. |
53 |
|
|
54 |
|
2010-11-08 Roland Geider <[email protected]> |
55 |
|
|
56 |
|
* formed/formed/plugins/export/xsd.py: validate formedtree.xml |
57 |
|
|
58 |
|
2010-11-08 Roland Geider <[email protected]> |
59 |
|
|
60 |
|
* formed/formed/model/data.py, |
61 |
|
formed/formed/plugins/export/xsd.py, |
62 |
|
formed/formed/config.py: issue1131: generate XSD for case exports |
63 |
|
|
64 |
|
2010-10-21 Torsten Irlaender <[email protected]> |
65 |
|
|
66 |
|
* formed/formed/plugins/export/rules_sh.py: Added new LE-Operator |
67 |
|
* formed/formed/plugins/modify/rules.py: Add error rule to force phase |
68 |
|
relevant datefields not to be "unknown". |
69 |
|
|
70 |
|
2010-10-12 Roland Geider <[email protected]> |
71 |
|
|
72 |
|
* formed/formed/plugins/export/rules_sh.py: Ignore rules if any fields |
73 |
|
in the rule are in a repeat group |
74 |
|
|
75 |
|
2010-10-11 Roland Geider <[email protected]> |
76 |
|
|
77 |
|
* formed/plugins/export/rules_sh.py: Added support to more opperators |
78 |
|
to be able to export the WASKO case |
79 |
|
|
80 |
|
2010-10-06 Torsten Irlaender <[email protected]> |
81 |
|
|
82 |
|
* formed/formed/plugins/export/rules_sh.py (generate_tagging): Fixed |
83 |
|
gerating SQL for Rules |
84 |
|
* formed/formed/plugins/export/rules_sh.py (sql_date): Fixed sql_date |
85 |
|
function. |
86 |
|
|
87 |
|
2010-10-05 Torsten Irländer <[email protected]> |
88 |
|
|
89 |
|
* formed/formed/model/data.py: Fixed error when setting tag attribute. |
90 |
|
* formed/formed/plugins/export/rules_sh.py: Added generating exporting |
91 |
|
tagging-xml |
92 |
|
* formed/formed/plugins/modify/rules.py: Do not generate automatic |
93 |
|
tagids for rules. |
94 |
|
|
95 |
|
2010-10-04 Torsten Irländer <[email protected]> |
96 |
|
|
97 |
|
* formed/formed/model/data.py (RuleLeaf.__init__): Added new attribute |
98 |
|
"tag" for rule-leafs |
99 |
|
* formed/formed/config.py: Added export rules as XML to Menu |
100 |
|
* formed/formed/plugins/modify/rules.py |
101 |
|
(GenerateRequiredRules.generateDateSequenceRules): Generate automatic |
102 |
|
tag ids for date-sequence rules |
103 |
|
|
104 |
|
2010-09-30 Torsten Irländer <[email protected]> |
105 |
|
|
106 |
|
* formed/formed/plugins/export/rules_sh.py |
107 |
|
(ExportRulesAsSH.doExport): Filter out duplicted rules. |
108 |
|
|
109 |
|
2010-09-20 Frank Koormann <[email protected]> |
110 |
|
|
111 |
|
* formed/formed/plugins/export/latex.py (RecursiveExporter): |
112 |
|
Add "required"-field information to output and include |
113 |
|
choice list contents. |
114 |
|
|
115 |
|
2010-09-16 Bernhard Herzog <[email protected]> |
116 |
|
|
117 |
|
Avoid database deadlocks that can happen when database clients try |
118 |
|
to work with the same case using two separate database |
119 |
|
connections. See mpuls/issue1145 for details. |
120 |
|
|
121 |
|
* formed/formed/plugins/export/rg_sql.py (SQL_TEMPLATE): Split the |
122 |
|
computation of the new json structure description into the new |
123 |
|
database function compute_case_structure |
124 |
|
(TRIGGER_TMPL): Change the trigger functions to immediately update |
125 |
|
the cached json structure description instead of just setting the |
126 |
|
modified flag. This avoids the lazy recomputation that makes what |
127 |
|
seems like a read-only access (calling get_case_structure) into a |
128 |
|
writing access (updates of the cache). The writes lock the row in |
129 |
|
the case_structure table which prevent other connections from |
130 |
|
accessing the same case. As part of this, the delete triggers are |
131 |
|
now AFTER triggers because the repeat groups instance must have |
132 |
|
been removed when the structure is recomputed. |
133 |
|
(SUBSELECT_TMPL): Since the delete trigger is now an after |
134 |
|
trigger, we need to change the way the master id is computed. We |
135 |
|
cannot join with the repeatgroup table in question because the row |
136 |
|
has already been deleted. However, we can use the master_id |
137 |
|
column of the OLD row to select the row of the parent table. |
138 |
|
(create_triggers): Avoid the inner joins with the current repeat |
139 |
|
group for the above mentioned reasons. In the very common case of |
140 |
|
repeat groups which are direct children of the master_tbl, we can |
141 |
|
compare the master_tbl.id directly with the row's master_id. |
142 |
|
|
143 |
2010-09-14 Roland Geider <[email protected]> |
2010-09-14 Roland Geider <[email protected]> |
144 |
|
|
145 |
* formed/formed/plugins/export/xsd.py: issue1131: update XSD for new |
* formed/formed/plugins/export/xsd.py: issue1131: update XSD for new |