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

patches/PropertyManager: py3

parent afa133b9
......@@ -46,7 +46,7 @@ def PropertyManager_updateProperty(self, id, value, local_properties=False):
if not hasattr(self, 'isRADContent'):
if not self.hasProperty(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) \
or 'string'
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