Commit 5e14657f authored by Alexandre Boeglin's avatar Alexandre Boeglin

_aq_dynamic has better comments and does not break anylonger after code generation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3032 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 98d5ec89
......@@ -377,7 +377,13 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# Always try to return something after generation
if generated:
return getattr(self, id)
# We suppose that if we reach this point
# then it means that all code generation has succeeded
# (no except should hide that). We can safely return None
# if id does not exist as a dynamic property
# Baseline: accessor generation failures should always
# raise an exception up to the user
return getattr(self, id, None)
# Proceed with standard acquisition
return None
......
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