[Mpuls-commits] r3005 - in base/trunk: . mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jun 14 11:20:39 CEST 2010
Author: bh
Date: 2010-06-14 11:20:38 +0200 (Mon, 14 Jun 2010)
New Revision: 3005
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (Field.__repr__): Added for more
informative debug logs
(MpulsCase.__getattr__): Improve debug log contents.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2010-06-11 14:05:31 UTC (rev 3004)
+++ base/trunk/ChangeLog 2010-06-14 09:20:38 UTC (rev 3005)
@@ -1,3 +1,9 @@
+2010-06-14 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/model/case.py (Field.__repr__): Added for more
+ informative debug logs
+ (MpulsCase.__getattr__): Improve debug log contents.
+
2010-06-11 Torsten Irländer <torsten.irlaender at intevation.de>
Changed validity icons. Ported from 1.7.1 branch of waska
Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py 2010-06-11 14:05:31 UTC (rev 3004)
+++ base/trunk/mpulsweb/model/case.py 2010-06-14 09:20:38 UTC (rev 3005)
@@ -261,6 +261,8 @@
self.overview_label = overview_label or name
self.overview_style = overview_style
+ def __repr__(self):
+ return "Field(%r)" % (self.name,)
@property
def default(self):
@@ -576,7 +578,7 @@
def __getattr__(self, name):
"""Provide attribute like access to some fields for compatibility"""
field = self.alias_dict.get(name)
- log.debug('field: %s' % field)
+ log.debug('accessing field %r using name %r' % (field, name))
if field:
try:
value = self.get_value(field.name)
More information about the Mpuls-commits
mailing list