Commit 870235a6 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix testERP5eGov.

parent 1b1859b9
...@@ -754,11 +754,15 @@ class PDFTypeInformation(ERP5TypeInformation): ...@@ -754,11 +754,15 @@ class PDFTypeInformation(ERP5TypeInformation):
except AttributeError: except AttributeError:
return property_sheet_list return property_sheet_list
try:
property_sheet = self.getPortalObject().portal_property_sheets.newContent( property_sheet = self.getPortalObject().portal_property_sheets.newContent(
id=self.__name__.replace(' ', ''), id=self.__name__.replace(' ', ''),
portal_type='Property Sheet', portal_type='Property Sheet',
temp_object=True) temp_object=True)
except AttributeError:
return property_sheet_list
for page_content in parsed_scribus_iterator: for page_content in parsed_scribus_iterator:
for field_name, fields_values in page_content: for field_name, fields_values in page_content:
property_sheet.newContent(reference=field_name[3:], property_sheet.newContent(reference=field_name[3:],
......
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