[Mpuls-commits] r2799 - waska/branches/1.7/waskaweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri May 28 15:26:10 CEST 2010
Author: torsten
Date: 2010-05-28 15:26:10 +0200 (Fri, 28 May 2010)
New Revision: 2799
Modified:
waska/branches/1.7/waskaweb/model/case.py
Log:
Init case with tags
Modified: waska/branches/1.7/waskaweb/model/case.py
===================================================================
--- waska/branches/1.7/waskaweb/model/case.py 2010-05-28 13:25:41 UTC (rev 2798)
+++ waska/branches/1.7/waskaweb/model/case.py 2010-05-28 13:26:10 UTC (rev 2799)
@@ -364,7 +364,8 @@
row['status'], \
row['zugriff'], \
row['zeitraum_nachbetreuung'], \
- row['art_beendigung'])
+ row['art_beendigung'], \
+ row['tags'])
self.ds_list.append(case)
return self.ds_list
@@ -415,7 +416,7 @@
return case
- def loadByName(self, id, phase, first_name, last_name, knr, bearbeiter_id, einverst, s_id, s_state, s_access, s_cm_finished, s_cm_canceled):
+ def loadByName(self, id, phase, first_name, last_name, knr, bearbeiter_id, einverst, s_id, s_state, s_access, s_cm_finished, s_cm_canceled, tags):
'''This method does not actually loads a case from the database. It
just returns a case object initiated with the provided parameters'''
case = Case()
@@ -425,6 +426,7 @@
case.last_name = unicode(str(last_name), 'utf-8')
case.knr = unicode(str(knr), 'utf-8')
case.editor = bearbeiter_id
+ case.tags = tags
case.state = State()
case.state.phase = phase
case.state.setData(s_id, id, s_state, s_access, s_cm_finished, s_cm_canceled)
More information about the Mpuls-commits
mailing list