[Mpuls-commits] r816 - in wasko/branches/2.0: . waskaweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jan 21 19:27:18 CET 2010
Author: bh
Date: 2010-01-21 19:27:17 +0100 (Thu, 21 Jan 2010)
New Revision: 816
Modified:
wasko/branches/2.0/ChangeLog.txt
wasko/branches/2.0/waskaweb/model/case.py
Log:
* waskaweb/model/case.py (Case.getPage, Case.getKompetenzId):
Removed. Not used anywhere.
Modified: wasko/branches/2.0/ChangeLog.txt
===================================================================
--- wasko/branches/2.0/ChangeLog.txt 2010-01-21 18:21:11 UTC (rev 815)
+++ wasko/branches/2.0/ChangeLog.txt 2010-01-21 18:27:17 UTC (rev 816)
@@ -1,5 +1,10 @@
2010-01-21 Bernhard Herzog <bh at intevation.de>
+ * waskaweb/model/case.py (Case.getPage, Case.getKompetenzId):
+ Removed. Not used anywhere.
+
+2010-01-21 Bernhard Herzog <bh at intevation.de>
+
* waskaweb/controllers/case_overview.py
(CaseOverviewController.overview): Remove misleading comment
Modified: wasko/branches/2.0/waskaweb/model/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/case.py 2010-01-21 18:21:11 UTC (rev 815)
+++ wasko/branches/2.0/waskaweb/model/case.py 2010-01-21 18:27:17 UTC (rev 816)
@@ -1037,37 +1037,6 @@
db.recycleConnection(con, cur)
return self.editor
- def getPage(self, datapage=None):
- '''Returns a datapage with the given name of the case'''
- if not self.page is None:
- return self.page
- try:
- self.page = datapage
- self.page.setCaseId(self.id)
- return self.page
- except:
- self.page = None
- raise
- return None
-
- def getKompetenzId(self):
- '''Returns the id of the kompetenz repeat group'''
- return 0
- #con, cur = None, None
- #id = None
- #try:
- # con = db.getConnection()
- # # a master dataset has to be created each time
- # cur = con.cursor(cursor_factory=psycopg2.extras.DictCursor)
- # cur.execute(FETCH_KOMPETENZ_ID, { 'id': self.id })
- # row = cur.fetchone()
- # if row:
- # id = row['id']
- # cur.close(); cur = None
- #finally:
- # db.recycleConnection(con, cur)
- #return id
-
def getDigest(self, empty=False):
'''Returns the digest of the case'''
if not self.digest is None: return self.digest
More information about the Mpuls-commits
mailing list