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]> |
144 |
|
|
145 |
|
* formed/formed/plugins/export/xsd.py: issue1131: update XSD for new |
146 |
|
formedtree structure |
147 |
|
|
148 |
|
2010-09-01 Roland Geider <[email protected]> |
149 |
|
|
150 |
|
* formed/formed/plugins/modify/rules.py: issue1050: mandatory fields |
151 |
|
appearing double. |
152 |
|
The problem was that the way the formEditor handled fields with |
153 |
|
manually created rules changed. Instead of ignoring fields (very |
154 |
|
early behaviour) or always generating them (early behaviour), now the |
155 |
|
formED will only ignore fields with rules which name starts with |
156 |
|
'required-rule-manual'. This is helpful when the rules for mandatory |
157 |
|
fields are more complex (e.g. mother's name is only required if |
158 |
|
mother is known). |
159 |
|
|
160 |
|
2010-08-10 Torsten Irländer <[email protected]> |
161 |
|
|
162 |
|
* contrib/diff_formed.py: New helperscript to diff to given |
163 |
|
formedtrees |
164 |
|
|
165 |
|
2010-08-09 Roland Geider <[email protected]> |
166 |
|
|
167 |
|
* formed/model/exprtree.py: fixed typo |
168 |
|
|
169 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
170 |
|
|
171 |
|
* formed/po/de_DE.po: Update translations |
172 |
|
|
173 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
174 |
|
|
175 |
|
* formed/po/formed.pot: Regenerated. |
176 |
|
|
177 |
|
* formed/po/de_DE.po: Update. |
178 |
|
|
179 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
180 |
|
|
181 |
|
* formed/po/Makefile: Use correct filename of the pot-file in the |
182 |
|
usage message |
183 |
|
|
184 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
185 |
|
|
186 |
|
* formed/po/Makefile (LIST_POTFILES): Sort the file names to make |
187 |
|
the order of entries in the .pot-file more predictable. |
188 |
|
|
189 |
|
2010-08-04 Bernhard Herzog <[email protected]> |
190 |
|
|
191 |
|
* formed/formed/model/nodecomponents.py (RootNode.__init__) |
192 |
|
(RootNode.getVersion, RootNode.setVersion): Add attribute |
193 |
|
"version" and accessor methods. |
194 |
|
|
195 |
|
* formed/formed/main.py (MainFrame.OnSetDocumentVersion): New. Let |
196 |
|
the user set the document version. |
197 |
|
(MainFrame._createMenuBar): Add menu item for OnSetDocumentVersion |
198 |
|
|
199 |
|
2010-08-02 Bernhard Herzog <[email protected]> |
200 |
|
|
201 |
|
* formed/formed.py, formed/formed/io/document.py, |
202 |
|
formed/formed/io/factories.py, formed/formed/io/parser.py, |
203 |
|
formed/formed/model/data.py, formed/formed/model/event.py, |
204 |
|
formed/formed/model/expr.py, formed/formed/model/exprtree.py, |
205 |
|
formed/formed/model/memory.py, formed/formed/model/misc.py, |
206 |
|
formed/formed/model/nodecomponents.py, |
207 |
|
formed/formed/model/persistent.py: Fix coding declaration to be |
208 |
|
acceptable to both python and Emacs. |
209 |
|
|
210 |
|
2010-07-29 Torsten Irländer <[email protected]> |
211 |
|
|
212 |
|
* formed/formed/model/data.py: Added "invisible" attribute to |
213 |
|
BoolLeafs. This can be used to hide options in choicelists. so the |
214 |
|
user can not select the value in the user interface. But the db will |
215 |
|
have this option so is ist still present in the db an can be used |
216 |
|
* formed/formed/model/exprtree.py: Added "days" function. |
217 |
|
|
218 |
|
2010-07-26 Roland Geider <[email protected]> |
219 |
|
|
220 |
|
* formed/formed/model/nodecomponents.py, |
221 |
|
formed/formed/plugins/modify/rules.py: generated date rules take |
222 |
|
into consideration repeat groups |
223 |
|
|
224 |
|
2010-07-21 Torsten Irländer <[email protected]> |
225 |
|
|
226 |
|
Issue870 |
227 |
|
|
228 |
|
* formed/formed/plugins/modify/rules.py (descriptions): Do not collect |
229 |
|
all headers to the referenced fields. Only list labels of the error |
230 |
|
fields, which should be distinct enough. |
231 |
|
|
232 |
|
Issue851 |
233 |
|
|
234 |
|
* formed/formed/model/data.py |
235 |
|
formed/formed/plugins/export/new_sql.py |
236 |
|
formed/formed/plugins/web/view_renderer.py |
237 |
|
formed/formed/io/document.py |
238 |
|
formed/formed/config.py: Added Float-Field to Formed |
239 |
|
|
240 |
2010-06-11 Bernhard Herzog <[email protected]> |
2010-06-11 Bernhard Herzog <[email protected]> |
241 |
|
|
242 |
* formed/formed/plugins/export/rg_sql.py |
* formed/formed/plugins/export/rg_sql.py |
248 |
|
|
249 |
2010-06-02 Roland Geider <[email protected]> |
2010-06-02 Roland Geider <[email protected]> |
250 |
|
|
251 |
|
* formed/formed/plugins/modify/rules.py: make the names of generated |
252 |
|
date-sequence-rules unique |
253 |
|
|
254 |
|
2010-06-02 Roland Geider <[email protected]> |
255 |
|
|
256 |
* formed/plugins/export/xls.py: updated regular expression |
* formed/plugins/export/xls.py: updated regular expression |
257 |
|
|
258 |
2010-05-17 Frank Koormann <[email protected]> |
2010-05-17 Frank Koormann <[email protected]> |