1 |
|
2010-09-20 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
* formed/formed/plugins/export/latex.py (RecursiveExporter): |
4 |
|
Add "required"-field information to output and include |
5 |
|
choice list contents. |
6 |
|
|
7 |
|
2010-09-16 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
Avoid database deadlocks that can happen when database clients try |
10 |
|
to work with the same case using two separate database |
11 |
|
connections. See mpuls/issue1145 for details. |
12 |
|
|
13 |
|
* formed/formed/plugins/export/rg_sql.py (SQL_TEMPLATE): Split the |
14 |
|
computation of the new json structure description into the new |
15 |
|
database function compute_case_structure |
16 |
|
(TRIGGER_TMPL): Change the trigger functions to immediately update |
17 |
|
the cached json structure description instead of just setting the |
18 |
|
modified flag. This avoids the lazy recomputation that makes what |
19 |
|
seems like a read-only access (calling get_case_structure) into a |
20 |
|
writing access (updates of the cache). The writes lock the row in |
21 |
|
the case_structure table which prevent other connections from |
22 |
|
accessing the same case. As part of this, the delete triggers are |
23 |
|
now AFTER triggers because the repeat groups instance must have |
24 |
|
been removed when the structure is recomputed. |
25 |
|
(SUBSELECT_TMPL): Since the delete trigger is now an after |
26 |
|
trigger, we need to change the way the master id is computed. We |
27 |
|
cannot join with the repeatgroup table in question because the row |
28 |
|
has already been deleted. However, we can use the master_id |
29 |
|
column of the OLD row to select the row of the parent table. |
30 |
|
(create_triggers): Avoid the inner joins with the current repeat |
31 |
|
group for the above mentioned reasons. In the very common case of |
32 |
|
repeat groups which are direct children of the master_tbl, we can |
33 |
|
compare the master_tbl.id directly with the row's master_id. |
34 |
|
|
35 |
2010-09-14 Roland Geider <[email protected]> |
2010-09-14 Roland Geider <[email protected]> |
36 |
|
|
37 |
* formed/formed/plugins/export/xsd.py: issue1131: update XSD for new |
* formed/formed/plugins/export/xsd.py: issue1131: update XSD for new |