Commit 02eb681a authored by Jean-Paul Smets's avatar Jean-Paul Smets

A dirty fix for now. All property accesses must be rewritten using accessors....

A dirty fix for now. All property accesses must be rewritten using accessors. Propper error handling must be designed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27086 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 645bc211
......@@ -131,7 +131,7 @@ class DocumentationHelper(Implicit):
"""
Returns the id of the documentation helper
"""
return self.getDocumentedObject().id
return getattr(aq_base(self.getDocumentedObject()), 'id', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getTempInstance')
def getTempInstance(self, portal_type):
......
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