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