Commit 3c0a449f authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

patches/PropertyManager: py3

parent 095f1fa5
......@@ -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