diff --git a/product/ERP5OOo/Document/ExternalLibraryFile.py b/product/ERP5OOo/Document/ExternalLibraryFile.py index 884e52427a2d2d35645fdc41a4597705bc3fc8ac..bd08cf286aec18c212c5f1f4a33b1e1fa9055fce 100644 --- a/product/ERP5OOo/Document/ExternalLibraryFile.py +++ b/product/ERP5OOo/Document/ExternalLibraryFile.py @@ -114,11 +114,11 @@ class ExternalLibraryFile(ExternalDocument): def _processData(self,s,inf): # remove current subobjects - self.manage_delObjects([i.getId() for i in self.searchFolder(portal_type='Book Information')]) + self.manage_delObjects([i.getId() for i in self.searchFolder(portal_type='Book')]) # parse xml file and iterate over results lista=parseLibraryFile(s) for i,o in enumerate(lista): - n=self.newContent(portal_type='Book Information') + n=self.newContent(portal_type='Book') self.log(n.getRelativeUrl()) n.setTitle(o.title) n.setDescription(o.description)