From ccdb7257668583d59cc95aa829780c6a4ff38b57 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 27 Nov 2007 16:15:32 +0000 Subject: [PATCH] added None to support zope __provides__, [ticket:882] --- lib/sqlalchemy/orm/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2