Commit 783ea725 authored by Arnaud Fontaine's avatar Arnaud Fontaine

When adding a Dynamic Category Property to a ZODB Property Sheet, the

expression has not been filled yet, thus re-generated accessors could
have failed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43208 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1f8f693d
......@@ -55,7 +55,11 @@ class DynamicCategoryProperty(XMLObject):
"""
Return the filesystem definition of the property
"""
return Expression(self.getCategoryExpression())
expression_string = self.getCategoryExpression()
if expression_string is None:
return None
return Expression(expression_string)
security.declareProtected(Permissions.AccessContentsInformation,
'importFromFilesystemDefinition')
......
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