Remove unnecessary comment


Does work after all. Note the absence of the _list suffix on the setting
parent cd997726
...@@ -100,10 +100,6 @@ class MappedProperty(XMLObject): ...@@ -100,10 +100,6 @@ class MappedProperty(XMLObject):
security.declarePublic('setMappedProperty') security.declarePublic('setMappedProperty')
def setMappedProperty(self, document, property, value): def setMappedProperty(self, document, property, value):
if property.endswith('_list'): if property.endswith('_list'):
# XXX-Leo: This won't work for 'variation_category_list'
# calling document.setPropertyList('variation_category_list', value)
# breaks with:
# TypeError: A mono valued property must be set with a list of len 1
property = property[:-5] property = property[:-5]
setProperty = document.setPropertyList setProperty = document.setPropertyList
else: else:
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