[Mpuls-commits] r979 - in wasko/branches/2.0: . waskaweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jan 28 12:17:53 CET 2010
Author: bh
Date: 2010-01-28 12:17:50 +0100 (Thu, 28 Jan 2010)
New Revision: 979
Modified:
wasko/branches/2.0/ChangeLog
wasko/branches/2.0/waskaweb/model/case.py
Log:
Remove mode from SessionCase
* waskaweb/model/case.py (SessionCase.__init__): Remove instance
variable "mode".
(SessionCase.setMode, SessionCase.setMode, Case.setMode)
(Case.getMode): Removed. No longer used.
Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog 2010-01-28 11:14:41 UTC (rev 978)
+++ wasko/branches/2.0/ChangeLog 2010-01-28 11:17:50 UTC (rev 979)
@@ -1,5 +1,14 @@
2010-01-28 Bernhard Herzog <bh at intevation.de>
+ Remove mode from SessionCase
+
+ * waskaweb/model/case.py (SessionCase.__init__): Remove instance
+ variable "mode".
+ (SessionCase.setMode, SessionCase.setMode, Case.setMode)
+ (Case.getMode): Removed. No longer used.
+
+2010-01-28 Bernhard Herzog <bh at intevation.de>
+
* waskaweb/templates/casemanagement/digest_body.mako: Generate the
digest from a list of fields. This is now a more generic digest
which needs to be adapted to specific MPuls applications.
Modified: wasko/branches/2.0/waskaweb/model/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/case.py 2010-01-28 11:14:41 UTC (rev 978)
+++ wasko/branches/2.0/waskaweb/model/case.py 2010-01-28 11:17:50 UTC (rev 979)
@@ -732,7 +732,6 @@
else:
self.id = int(id)
self.page_id = None
- self.mode = "show"
self.form_errors = {}
self.last_name = None
self.first_name = None
@@ -755,12 +754,6 @@
# not used anyway.
return self.state
- def getMode(self):
- return self.mode
-
- def setMode(self, mode="show"):
- self.mode = mode
-
def setPageId(self, id):
self.page_id = id
@@ -858,14 +851,6 @@
def getId(self):
return self.id
- def getMode(self):
- return self.getSessionCase().getMode()
-
- def setMode(self, mode="show"):
- s = self.getSessionCase(self.id)
- s.setMode(mode)
- s.save()
-
def getState(self):
return self.state
More information about the Mpuls-commits
mailing list