From e2fca426d9361e9180457d5a89b90be836cdf034 Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Wed, 21 Nov 2012 14:43:37 +0100 Subject: [PATCH] Return early for attributes that begin with two underscores (typically '__conform__'). --- plone/dexterity/content.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plone/dexterity/content.py b/plone/dexterity/content.py index bdb1bda..5bf69c2 100644 --- a/plone/dexterity/content.py +++ b/plone/dexterity/content.py @@ -177,10 +177,12 @@ class DexterityContent(DAVResourceMixin, PortalContent, DefaultDublinCoreImpl, C description = u'' def __getattr__(self, name): - # attribute was not found; try to look it up in the schema and return # a default - + + if not name.startswith('__'): + raise AttributeError(name) + schema = SCHEMA_CACHE.get(self.portal_type) if schema is not None: field = schema.get(name, None)