[Mpuls-commits] r2258 - in wasko/branches/2.0: . jmdweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Mar 29 20:45:39 CEST 2010
Author: bh
Date: 2010-03-29 20:45:35 +0200 (Mon, 29 Mar 2010)
New Revision: 2258
Modified:
wasko/branches/2.0/ChangeLog
wasko/branches/2.0/jmdweb/model/case.py
Log:
* jmdweb/model/case.py: Fix formatting.
Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog 2010-03-29 18:43:20 UTC (rev 2257)
+++ wasko/branches/2.0/ChangeLog 2010-03-29 18:45:35 UTC (rev 2258)
@@ -1,5 +1,9 @@
2010-03-29 Bernhard Herzog <bh at intevation.de>
+ * jmdweb/model/case.py: Fix formatting.
+
+2010-03-29 Bernhard Herzog <bh at intevation.de>
+
* jmdweb/lib/search.py: Fix formatting.
2010-03-29 Bernhard Herzog <bh at intevation.de>
Modified: wasko/branches/2.0/jmdweb/model/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/model/case.py 2010-03-29 18:43:20 UTC (rev 2257)
+++ wasko/branches/2.0/jmdweb/model/case.py 2010-03-29 18:45:35 UTC (rev 2258)
@@ -26,6 +26,7 @@
# Authors:
# Torsten Irländer <torsten.irlaender at intevation.de>
#
+
import logging
from mpulsweb.lib.base import session
@@ -33,8 +34,8 @@
from mpulsweb.model.user import UserObject
from mpulsweb.model.agencysettings import Agency
-from mpulsweb.model.case import MpulsCase, MpulsCaseFactory, MpulsCaseOverview, \
- MpulsCaseBundle, MpulsCaseState
+from mpulsweb.model.case import MpulsCase, MpulsCaseFactory, \
+ MpulsCaseOverview, MpulsCaseBundle, MpulsCaseState
log = logging.getLogger(__name__)
@@ -50,15 +51,22 @@
SET_EDITOR_NAME_SQL = """
SELECT set_case_editor_name(%(firstname)s, %(lastname)s, %(caseid)s)"""
+
class CaseBundle(MpulsCaseBundle):
+
pass
+
class CaseOverview(MpulsCaseOverview):
+
pass
+
class State(MpulsCaseState):
+
pass
+
class CaseFactory(MpulsCaseFactory):
def _initNewCase(self, id):
@@ -78,6 +86,7 @@
finally:
db.recycleConnection(conn, cur)
+
class Case(MpulsCase):
def setEditor(self, userid):
@@ -89,7 +98,7 @@
con = db.getConnection()
user = UserObject(userid)
fields = {'caseid': self.id, 'firstname': user.first_name,
- 'lastname': user.last_name}
+ 'lastname': user.last_name}
cur = con.cursor()
try:
cur.execute(SET_EDITOR_NAME_SQL, fields)
More information about the Mpuls-commits
mailing list