[Mpuls-commits] r5591 - base/trunk/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 16 17:32:33 CET 2011


Author: bh
Date: 2011-11-16 17:32:32 +0100 (Wed, 16 Nov 2011)
New Revision: 5591

Modified:
   base/trunk/mpulsweb/model/case.py
Log:
Derive MpulsCase from object. This is necessary for classmethod to work.
The classmethod decorator was already used in MpulsCase, but it worked
for some reason, even though classmethod is only meant to work with
new-style classes, i.e. classes derived from object.


Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py	2011-11-16 09:15:53 UTC (rev 5590)
+++ base/trunk/mpulsweb/model/case.py	2011-11-16 16:32:32 UTC (rev 5591)
@@ -543,7 +543,7 @@
             db.recycleConnection(con, cur)
 
 
-class MpulsCase:
+class MpulsCase(object):
 
     def __init__(self, id=None, preset=None, state_id=None, state_status=None,
                  state_access=None, state_phase=None, tags=None, editor_id=None):



More information about the Mpuls-commits mailing list