[Mpuls-commits] r5792 - base/trunk/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jan 25 10:46:08 CET 2012
Author: bricks
Date: 2012-01-25 10:46:08 +0100 (Wed, 25 Jan 2012)
New Revision: 5792
Modified:
base/trunk/mpulsweb/model/document.py
Log:
Revert accidential change in r5791
Modified: base/trunk/mpulsweb/model/document.py
===================================================================
--- base/trunk/mpulsweb/model/document.py 2012-01-25 09:43:21 UTC (rev 5791)
+++ base/trunk/mpulsweb/model/document.py 2012-01-25 09:46:08 UTC (rev 5792)
@@ -227,17 +227,9 @@
else:
stmnt = UPDATE_CASE
fields['case'] = case_id
- try:
- cursor.execute(stmnt, fields)
- except Exception, e:
- print "stmnt: %s fields: %r" % (stmnt, fields)
- print "dataerror: %s" % dir(e)
- print "dataerror: %r" % e
- print "pgerror: %s" % e.pgerror
- print "pgcode: %s" % e.pgcode
- print "args: %s" % e.args
- raise e
+ cursor.execute(stmnt, fields)
+
return document_id
def rename_document_with_cursor(cursor, id, name, desc, is_case_document):
More information about the Mpuls-commits
mailing list