[Erp5-report] r43584 mario.amaral - /erp5/trunk/utils/cloudooo/cloudooo/interfaces/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 22 23:00:43 CET 2011


Author: mario.amaral
Date: Tue Feb 22 23:00:43 2011
New Revision: 43584

URL: http://svn.erp5.org?rev=43584&view=rev
Log:
Add parameters in the functions.

Modified:
    erp5/trunk/utils/cloudooo/cloudooo/interfaces/granulate.py

Modified: erp5/trunk/utils/cloudooo/cloudooo/interfaces/granulate.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/interfaces/granulate.py?rev=43584&r1=43583&r2=43584&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/interfaces/granulate.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/interfaces/granulate.py [utf8] Tue Feb 22 23:00:43 2011
@@ -32,44 +32,44 @@ from zope.interface import Interface
 class ITableGranulator(Interface):
   """Provides methods to granulate a document into tables."""
 
-  def getTableItemList():
+  def getTableItemList(data, source_format):
     """Returns the list of table IDs in the form of (id, title)."""
 
-  def getTableItem(id, format):
+  def getTableItem(data, format, table_id, source_format):
     """Returns the table into a new 'format' file."""
 
-  def getTableMatrix(self, id):
+  def getTableMatrix(self, table_id, source_format):
     """Returns the table as a matrix."""
 
-  def getColumnItemList(file, table_id):
+  def getColumnItemList(data, table_id, source_format):
     """Return the list of columns in the form of (id, title)."""
 
-  def getLineItemList(file, table_id):
+  def getLineItemList(data, table_id, source_format):
     """Returns the lines of a given table as (key, value) pairs."""
 
 
 class IImageGranulator(Interface):
   """Provides methods to granulate a document into images."""
 
-  def getImageItemList():
+  def getImageItemList(data, source_format):
     """Return the list of images in the form of (id, title)."""
 
-  def getImage(id, format=None, resolution=None, **kw):
+  def getImage(data, image_id, source_format, format=None, resolution=None, **kw):
     """Return the given image."""
 
 
 class ITextGranulator(Interface):
   """Provides methods to granulate a document into chapters and paragraphs."""
 
-  def getParagraphItemList():
+  def getParagraphItemList(data, source_format):
     """Returns the list of paragraphs in the form of (id, class) where class
     may have special meaning to define TOC/TOI."""
 
-  def getParagraphItem(paragraph_id):
+  def getParagraphItem(data, paragraph_id, source_format):
     """Returns the paragraph in the form of (text, class)."""
 
-  def getChapterItemList(file):
+  def getChapterItemList(data, source_format):
     """Returns the list of chapters in the form of (id, level)."""
 
-  def getChapterItem(file, chapter_id):
+  def getChapterItem(data, chapter_id, source_format):
     """Return the chapter in the form of (title, level)."""



More information about the Erp5-report mailing list