same arity for _getattr and getattr
authorEmmanuel Garette <egarette@cadoles.com>
Tue, 1 Apr 2014 07:51:25 +0000 (09:51 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Tue, 1 Apr 2014 07:51:25 +0000 (09:51 +0200)
tiramisu/config.py

index af7266e..d867a59 100644 (file)
@@ -214,10 +214,11 @@ class SubConfig(object):
     def __getattr__(self, name):
         return self.getattr(name)
 
-    def _getattr(self, name):
+    def _getattr(self, name, force_permissive=False, force_properties=None,
+                 validate=True):
         """use getattr instead of _getattr
         """
-        return self.getattr(name)
+        return self.getattr(name, force_permissive, force_properties, validate)
 
     def getattr(self, name, force_permissive=False, force_properties=None,
                 validate=True):