Fixed GridFSProxy __getattr__ behaviour (#196)

This commit is contained in:
Ross Lawley
2012-12-21 11:55:05 +00:00
parent 485b811bd0
commit c5b047d0cd
9 changed files with 384 additions and 318 deletions

View File

@@ -969,7 +969,7 @@ class GridFSProxy(object):
if name in attrs:
return self.__getattribute__(name)
obj = self.get()
if name in dir(obj):
if hasattr(obj, name):
return getattr(obj, name)
raise AttributeError