Browse Source

corrected implementation of SkinningReplyTo.__getattr__

Darren Ranalli 16 years ago
parent
commit
4bc0c2b591
1 changed files with 4 additions and 4 deletions
  1. 4 4
      direct/src/http/WebRequest.py

+ 4 - 4
direct/src/http/WebRequest.py

@@ -96,12 +96,12 @@ class SkinningReplyTo:
             head.remove(tag)
 
     def __getattr__(self, attrName):
-        if not hasattr(self, attrName):
-            # pass-through to replyTo object which this object is a proxy to
-            return getattr(self._replyTo, attrName)
         if attrName in self.__dict__:
             return self.__dict__[attrName]
-        return getattr(self.__class__, attrName)
+        if hasattr(self.__class__, attrName):
+            return getattr(self.__class__, attrName)
+        # pass-through to replyTo object which this object is a proxy to
+        return getattr(self._replyTo, attrName)
 
 class WebRequestDispatcher(object):
     """