Commit 221bdc54 authored by Sebastien Robin's avatar Sebastien Robin

in getPropertyList, the default value was not propagated to getProperty

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25484 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbb01381
......@@ -1370,7 +1370,7 @@ class Base( CopyContainer,
def getPropertyList(self, key, d=None):
"""Same as getProperty, but for list properties.
"""
return self.getProperty('%s_list' % key)
return self.getProperty('%s_list' % key, d=d)
security.declareProtected( Permissions.ModifyPortalContent, 'setProperty' )
def setProperty(self, key, value, type='string', **kw):
......
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