[Mpuls-commits] r1663 - in wasko/branches/2.0: . mpulsweb/model waskaweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Feb 18 18:18:06 CET 2010
Author: bh
Date: 2010-02-18 18:18:06 +0100 (Thu, 18 Feb 2010)
New Revision: 1663
Modified:
wasko/branches/2.0/ChangeLog
wasko/branches/2.0/mpulsweb/model/case.py
wasko/branches/2.0/waskaweb/model/case.py
Log:
* mpulsweb/model/case.py (LoadCaseNotExistsError): Added. Moved
from waskaweb.
* waskaweb/model/case.py (LoadCaseNotExistsError): Removed. Moved
to mpulsweb
Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog 2010-02-18 17:11:22 UTC (rev 1662)
+++ wasko/branches/2.0/ChangeLog 2010-02-18 17:18:06 UTC (rev 1663)
@@ -1,5 +1,13 @@
2010-02-18 Bernhard Herzog <bh at intevation.de>
+ * mpulsweb/model/case.py (LoadCaseNotExistsError): Added. Moved
+ from waskaweb.
+
+ * waskaweb/model/case.py (LoadCaseNotExistsError): Removed. Moved
+ to mpulsweb
+
+2010-02-18 Bernhard Herzog <bh at intevation.de>
+
* waskaweb/model/case.py: Remove unused imports.
2010-02-18 Bernhard Herzog <bh at intevation.de>
Modified: wasko/branches/2.0/mpulsweb/model/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/case.py 2010-02-18 17:11:22 UTC (rev 1662)
+++ wasko/branches/2.0/mpulsweb/model/case.py 2010-02-18 17:18:06 UTC (rev 1663)
@@ -37,6 +37,15 @@
log = logging.getLogger(__name__)
+class LoadCaseNotExistsError(Exception):
+
+ def __init__(self, value):
+ self.value = value
+
+ def __str__(self):
+ return repr(self.value)
+
+
def get_field_identifier(id, name, it=None, idx=0):
"""Will return the identifier of a field. If the field in in a rg the
identifier of the first occourance will be returned on default."""
Modified: wasko/branches/2.0/waskaweb/model/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/case.py 2010-02-18 17:11:22 UTC (rev 1662)
+++ wasko/branches/2.0/waskaweb/model/case.py 2010-02-18 17:18:06 UTC (rev 1663)
@@ -50,7 +50,7 @@
from mpulsweb.model.user import UserObject
from mpulsweb.model.agencysettings import Agency
from mpulsweb.model.document import listDocuments
-from mpulsweb.model.case import get_field_identifier
+from mpulsweb.model.case import LoadCaseNotExistsError, get_field_identifier
from mpulsweb.controllers.formularpage import convert2dic
@@ -125,15 +125,6 @@
ANONYMIZE_CASE = """SELECT anonymize_case_wrapper(%(id)s)"""
-class LoadCaseNotExistsError(Exception):
-
- def __init__(self, value):
- self.value = value
-
- def __str__(self):
- return repr(self.value)
-
-
class CaseList:
def __init__(self, case_ids=None):
More information about the Mpuls-commits
mailing list