accept None value for list
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3445 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
6db3c6b2c5
commit
edeb72a3e2
1 changed files with 2 additions and 0 deletions
|
@ -303,6 +303,8 @@ class ListFieldInstance(FieldInstance):
|
|||
def marshall(self, value):
|
||||
if isinstance(value, basestring):
|
||||
return value
|
||||
if value is None:
|
||||
return u''
|
||||
return u'\n'.join(self.valueFieldInstance.marshall(v) for v in value)
|
||||
#return [self.valueFieldInstance.marshall(v) for v in value]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue