From: Mike Bayer Date: Tue, 27 Nov 2007 16:15:32 +0000 (+0000) Subject: added None to support zope __provides__, [ticket:882] X-Git-Tag: rel_0_4_2~130 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ccdb7257668583d59cc95aa829780c6a4ff38b57;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added None to support zope __provides__, [ticket:882] --- diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index bb713b30ab..9cfee5222a 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -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