Remove unnecessary comment

simulation_movement.setPropertyList(
  'variation_category',
  movement.getProperty('variation_category_list'))

Does work after all. Note the absence of the _list suffix on the setting
property.
parent cd997726
......@@ -100,10 +100,6 @@ class MappedProperty(XMLObject):
security.declarePublic('setMappedProperty')
def setMappedProperty(self, document, property, value):
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]
setProperty = document.setPropertyList
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