Commit 96bbcf78 authored by Romain Courteaud's avatar Romain Courteaud

By JPS.

Fix typo error.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12140 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e9a0beac
...@@ -71,7 +71,7 @@ class Setter(Method): ...@@ -71,7 +71,7 @@ class Setter(Method):
# Modify the property # Modify the property
if value in self._null: if value in self._null:
setattr(instance, self._storage_id, None) setattr(instance, self._storage_id, None)
elif self._property_type is 'content': elif self._property_type == 'content':
# A file object should be provided # A file object should be provided
file_upload = args[0] file_upload = args[0]
if isinstance(file_upload, FileUpload): if isinstance(file_upload, FileUpload):
......
...@@ -143,7 +143,7 @@ type_definition = { ...@@ -143,7 +143,7 @@ type_definition = {
'isList' : 1, 'isList' : 1,
}, },
# Content are subdocuments (ex. default_career) # Content are subdocuments (ex. default_career)
'content' : { 'cast' : identity, 'content' : { 'cast' : identity,
'null' : ('', 'None', None,), 'null' : ('', 'None', None,),
'default' : None, 'default' : None,
'isList' : 0, 'isList' : 0,
......
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