[Mpuls-commits] r175 - in waska/trunk: . waskaweb/controllers waskaweb/lib waskaweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 19 11:05:20 CEST 2008
Author: torsten
Date: 2008-09-19 11:05:19 +0200 (Fri, 19 Sep 2008)
New Revision: 175
Modified:
waska/trunk/ChangeLog.txt
waska/trunk/waskaweb/controllers/waska.py
waska/trunk/waskaweb/lib/evaluation.py
waska/trunk/waskaweb/templates/casemanagement/listbadcases.mako
Log:
QA, small fixes.
Modified: waska/trunk/ChangeLog.txt
===================================================================
--- waska/trunk/ChangeLog.txt 2008-09-18 14:57:12 UTC (rev 174)
+++ waska/trunk/ChangeLog.txt 2008-09-19 09:05:19 UTC (rev 175)
@@ -1,3 +1,14 @@
+2008-09-19 Torsten Irlaender <torsten.irlaender at intevation.de>
+
+ QA, small fixes.
+
+ * waskaweb/controllers/waska.py: Fixed counting number of inconsitent
+ cases.
+ * waskaweb/lib/evaluation.py: Do not do "inconsistency" checks in
+ evaluation. Only look on phases.
+ * waskaweb/templates/casemanagement/listbadcases.mako: Renamed
+ phase "clearing" to "Eingangsanamnese".
+
2008-09-18 Sascha L. Teichmann <sascha.teichmann at intevation.de>
* waskaweb/lib/evaluation.py: Fixed SQL typo, which caused error
Modified: waska/trunk/waskaweb/controllers/waska.py
===================================================================
--- waska/trunk/waskaweb/controllers/waska.py 2008-09-18 14:57:12 UTC (rev 174)
+++ waska/trunk/waskaweb/controllers/waska.py 2008-09-19 09:05:19 UTC (rev 175)
@@ -90,20 +90,19 @@
#find out if there are cases with errors
#Search inconsistencys on dates
- search_str1 = "state:1;state:2;state:4;state:5;bad:1;bad:2;bad:3;bad:4;bad:5;bad:6;bad:clearing_start;bad:clearing_ende;bad:beratung_start;bad:beratung_ende;bad:cm_start;bad:cm_ende;bad:nachbetreuung_start;bad:nachbetreuung_ende;own:%s" % user.id
+ search_str1 = "state:1;state:2;state:4;state:5;bad:1;bad:2;bad:3;bad:4;bad:5;bad:6;bad:7;own:%s" % user.id
#Search inconsistencys on phases but ignore older cases.
search_str2 = "state:1;state:2;state:4;bad:clearing_start;bad:clearing_ende;bad:beratung_start;bad:beratung_ende;bad:cm_start;bad:cm_ende;bad:nachbetreuung_start;bad:nachbetreuung_ende;only_cases_after:'%s';own:%s" % (INCONSISTENCY_CHECK_AFTER, user.id)
error_cases1 = Set(c.id for c in CaseOverview().search(search_str1))
error_cases2 = Set(c.id for c in CaseOverview().search(search_str2))
-
c.num_error_cases = len(error_cases1.union(error_cases2))
if c.num_error_cases > 0:
session['hascaseerrors'] = True
else:
- session['hascaseerrors'] = False
+ session['hascaseerrors'] = False
session.save()
return render('/start/start.mako')
Modified: waska/trunk/waskaweb/lib/evaluation.py
===================================================================
--- waska/trunk/waskaweb/lib/evaluation.py 2008-09-18 14:57:12 UTC (rev 174)
+++ waska/trunk/waskaweb/lib/evaluation.py 2008-09-19 09:05:19 UTC (rev 175)
@@ -835,7 +835,6 @@
JOIN master_tbl_eval_total_view m
ON m.id = l.master_id
WHERE m.phase = 7
- AND m.kompetenzfeststellung = 0
AND %s
AND l.dauer IS NOT NULL
GROUP BY l.art
Modified: waska/trunk/waskaweb/templates/casemanagement/listbadcases.mako
===================================================================
--- waska/trunk/waskaweb/templates/casemanagement/listbadcases.mako 2008-09-18 14:57:12 UTC (rev 174)
+++ waska/trunk/waskaweb/templates/casemanagement/listbadcases.mako 2008-09-19 09:05:19 UTC (rev 175)
@@ -7,8 +7,8 @@
'5':u'CM ist beendet, aber keine Beendigungsdatum angegeben',
'6':u'CM ist nicht beendet, aber Beendigungsdatum angegeben',
'7':u'Die aktuelle Phase der Fallakte konnte aufgrund von fehlenden Angaben nicht festgestellt werden',
- 'clearing_start':u'Fehlende Pflichtfeldangaben für Fälle in laufender "Clearing" Phase',
- 'clearing_ende':u'Fehlende Pflichtfeldangaben für Fälle in beendeter "Clearing" Phase',
+ 'clearing_start':u'Fehlende Pflichtfeldangaben für Fälle in laufender "Eingangsanamnese" Phase',
+ 'clearing_ende':u'Fehlende Pflichtfeldangaben für Fälle in beendeter "Eingangsanamnese" Phase',
'beratung_start':u'Fehlende Pflichtfeldangaben für Fälle in laufender "Beratungs" Phase',
'beratung_ende':u'Fehlende Pflichtfeldangaben für Fälle in beendeter "Beratungs" Phase',
'cm_start':u'Fehlende Pflichtfeldangaben für Fälle in laufender "Case-Management" Phase',
More information about the Mpuls-commits
mailing list