Commit b995a54a authored by Mario Jorge Amaral's avatar Mario Jorge Amaral

Change getChapterItemList and getChapterItem to receive a data.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43917 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e0512547
......@@ -347,9 +347,9 @@ class Manager(object):
def getChapterItemList(self, data, source_format):
"""Returns the list of chapters in the form of (id, level)."""
document = self._getOOGranulator(data, source_format)
return document.getChapterItemList(data)
return document.getChapterItemList()
def getChapterItem(self, chapter_id, data, source_format):
"""Return the chapter in the form of (title, level)."""
document = self._getOOGranulator(data, source_format)
return document.getChapterItem(data, chapter_id)
return document.getChapterItem(chapter_id)
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