Commit 8acf8b05 authored by Julien Muchembled's avatar Julien Muchembled

Fix _aq_dynamic for composed documents

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38853 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c66caa6b
......@@ -898,9 +898,10 @@ class Base( CopyContainer,
Base.aq_method_generating.append(aq_key)
try:
# Proceed with property generation
if self.isTempObject():
# If self is a temporary object, generate methods for the base
# document class rather than for the temporary document class.
if self.isTempObject() and len(klass.__bases__) == 1:
# If self is a simple temporary object (e.g. not a composed one),
# generate methods for the base document class rather than for the
# temporary document class.
# Otherwise, instances of the base document class would fail
# in calling such methods, because they are not instances of
# the temporary document class.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment