Commit a3247e0a authored by Jérome Perrin's avatar Jérome Perrin

patches/PropertyManager: py3

parent 54b704b8
...@@ -46,7 +46,7 @@ def PropertyManager_updateProperty(self, id, value, local_properties=False): ...@@ -46,7 +46,7 @@ def PropertyManager_updateProperty(self, id, value, local_properties=False):
if not hasattr(self, 'isRADContent'): if not hasattr(self, 'isRADContent'):
if not self.hasProperty(id): if not self.hasProperty(id):
raise BadRequest('The property %s does not exist' % escape(id)) raise BadRequest('The property %s does not exist' % escape(id))
if isinstance(value, str): if isinstance(value, (str, bytes)):
proptype=self.getPropertyType(id, local_properties=local_properties) \ proptype=self.getPropertyType(id, local_properties=local_properties) \
or 'string' or 'string'
if proptype in type_converters: if proptype in type_converters:
......
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