Changeset 2681 in products


Ignore:
Timestamp:
Jul 15, 2010 5:26:09 PM (9 years ago)
Author:
mylan
Message:

Added IGSpreadsheetDataProvider interface, updated IGSpreadsheet

Location:
quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/interfaces/__init__.py

    r2646 r2681  
    11# -*- extra stuff goes here -*- 
    22from gspreadsheet import IGSpreadsheet 
     3from gspreadsheet import IGSpreadsheetDataProvider 
    34 
  • quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/interfaces/gspreadsheet.py

    r2647 r2681  
    11from zope import schema 
    22from zope.interface import Interface 
     3from zope.interface import Attribute 
    34 
    45from zope.app.container.constraints import contains 
     
    1112 
    1213    # -*- schema definition goes here -*- 
     14 
     15    worksheet_id = Attribute('worksheet_id') 
     16    spreadsheet_id = Attribute('spreadsheet_id') 
     17 
     18 
     19class IGSpreadsheetDataProvider(Interface): 
     20    """Provide data for pointed google worksheet. 
     21       This data provide data for context, which 
     22       implement IGSpreadsheet interface. 
     23    """ 
     24 
     25    # -*- schema definition goes here -*- 
     26 
     27    def getListFeed(startrow_idx=0, query=None): 
     28        """Return list feed. 
     29           Worksheet get by spreadsheet-id, worksheet-id, got from the context 
     30        """ 
     31 
     32    def getWorksheetColumnsInfo(maxr='1', minr='1'): 
     33        """Return tuple of tuples with cell-id, cell-title. 
     34        """ 
     35 
Note: See TracChangeset for help on using the changeset viewer.