Commit bfdf119d authored by Sebastien Robin's avatar Sebastien Robin

fix a bug when there is some attached files in a flexible content


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 071be697
......@@ -68,13 +68,10 @@ class PatchedCPSDocument(CPSDocument):
f_type = 'int'
elif isinstance(field,CPSDocument):
pass
#prop_id = schema.getIdUnprefixed(field.id)
#if prop_id in ('file_text','content','attachedFile',
# 'attachedFile_html','attachedFile_text', 'content'):
# f_type = 'object' # this should be string, but this strings
# do so bad xml
#if not (prop_id in ('file_text','content','attachedFile','attachedFile_html','attachedFile_text')):
#if not (prop_id in ('content',)):
if prop_id.find('attachedFile')==0:
f_type='object' # In a flexible content, we do have some attachedFile_f1
# which are CPStringFiels with some binary data
# XXX This should NOT BE NEEDED!!
if f_type is not None:
property_sheet.append(
{
......
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