Commit 9584a80f authored by Gabriel Monnerat's avatar Gabriel Monnerat

Base.getPropertyLIst: Use _MARKER instead of None because this method

should always return a list

Also, it will follow the parameters set to the method getProperty
parent 1029aef7
......@@ -1221,7 +1221,7 @@ class Base( CopyContainer,
local_properties=True, **kw)
security.declareProtected( Permissions.AccessContentsInformation, 'getPropertyList' )
def getPropertyList(self, key, d=None):
def getPropertyList(self, key, d=_MARKER):
"""Same as getProperty, but for list properties.
"""
return self.getProperty('%s_list' % key, d=d)
......
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