]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added None to support zope __provides__, [ticket:882]
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Nov 2007 16:15:32 +0000 (16:15 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Nov 2007 16:15:32 +0000 (16:15 +0000)
lib/sqlalchemy/orm/attributes.py

index bb713b30ab794b2cd222f22054a218c8388174c6..9cfee5222a7d4805923d20dea5a92ddfb10120f2 100644 (file)
@@ -961,7 +961,7 @@ def register_class(class_, extra_init=None, on_exception=None):
     # (like associationproxy) become aware of themselves at the 
     # class level
     for key in dir(class_):
-        getattr(class_, key)
+        getattr(class_, key, None)
     
     oldinit = None
     doinit = False