[Mpuls-commits] r2021 - wasko/branches/2.0/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Mar 19 08:32:21 CET 2010
Author: torsten
Date: 2010-03-19 08:32:20 +0100 (Fri, 19 Mar 2010)
New Revision: 2021
Modified:
wasko/branches/2.0/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (MpulsCase.getStandin): New. Copied from
jmdweb.
Modified: wasko/branches/2.0/mpulsweb/model/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/case.py 2010-03-19 07:28:20 UTC (rev 2020)
+++ wasko/branches/2.0/mpulsweb/model/case.py 2010-03-19 07:32:20 UTC (rev 2021)
@@ -530,6 +530,17 @@
# Ensurse consistence of the case
self.make_consistent()
+ def getStandin(self):
+ """Returns the standin of the case"""
+ if not self.standin is None:
+ return self.standin
+ try:
+ self.standin = MpulsCaseStandin(self.id)
+ return self.standin
+ except:
+ self.standin = None
+ raise
+ return None
def __getattr__(self, name):
"""Provide attribute like access to some fields for compatibility"""
More information about the Mpuls-commits
mailing list