Commit 1b5ab1e1 authored by Bartek Górny's avatar Bartek Górny

changed a book's portal type (from Book Information to Book)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11602 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f48c2de
......@@ -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)
......
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