[Mpuls-commits] r2849 - in base/trunk: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jun 1 13:07:20 CEST 2010


Author: bh
Date: 2010-06-01 13:07:18 +0200 (Tue, 01 Jun 2010)
New Revision: 2849

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/validators.py
Log:
* mpulsweb/lib/validators.py (ValidatorStateObject.__setattr__)
(ValidatorStateObject.__getattr__): Removed.  They implemented
standard behavior of Python objects.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-06-01 10:48:36 UTC (rev 2848)
+++ base/trunk/ChangeLog	2010-06-01 11:07:18 UTC (rev 2849)
@@ -1,5 +1,11 @@
 2010-06-01  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/validators.py (ValidatorStateObject.__setattr__)
+	(ValidatorStateObject.__getattr__): Removed.  They implemented
+	standard behavior of Python objects.
+
+2010-06-01  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/controllers/administration.py
 	(AdministrationController.newUserAction)
 	(AdministrationController.editUserGroupAction): Instantiate

Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2010-06-01 10:48:36 UTC (rev 2848)
+++ base/trunk/mpulsweb/lib/validators.py	2010-06-01 11:07:18 UTC (rev 2849)
@@ -23,13 +23,9 @@
 
 class ValidatorStateObject:
 
-    def __setattr__(self, key, value):
-        self.__dict__[key] = value
+    pass
 
-    def __getattr__(self, key):
-        return self.__dict__[key]
 
-
 class BaseFormValidator(formencode.Schema):
 
     def __init__(self):



More information about the Mpuls-commits mailing list