Changeset 2649 in products


Ignore:
Timestamp:
Jul 9, 2010 10:41:35 AM (14 years ago)
Author:
liebster
Message:

Added spreadsheet_id and worksheet_id fields to GSpreadsheet content type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/content/gspreadsheet.py

    r2646 r2649  
    1313 
    1414GSpreadsheetSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( 
     15 
     16    atapi.StringField( 
     17        name = 'spreadsheet_id', 
     18        default='', 
     19        searchable = True, 
     20        required = True, 
     21        #languageIndependent=True, 
     22        storage=atapi.AnnotationStorage(), 
     23        widget = atapi.StringWidget( 
     24            label = _( 
     25                u'label_spreadsheet_id', 
     26                default=u'Spreadsheet ID'), 
     27            description=_( 
     28                u'help_spreadsheet_id', 
     29                default=u"Input spreadsheet ID."), 
     30            size = 40, 
     31        ), 
     32    ), 
     33 
     34    atapi.StringField( 
     35        name = 'worksheet_id', 
     36        default='', 
     37        searchable = True, 
     38        required = True, 
     39        #languageIndependent=True, 
     40        storage=atapi.AnnotationStorage(), 
     41        widget = atapi.StringWidget( 
     42            label = _( 
     43                u'label_worksheet_id', 
     44                default=u'Worksheet ID'), 
     45            description=_( 
     46                u'help_worksheet_id', 
     47                default=u"Input worksheet ID."), 
     48            size = 40, 
     49        ), 
     50    ), 
    1551 
    1652    # -*- Your Archetypes field definitions here ... -*- 
     
    3571    title = atapi.ATFieldProperty('title') 
    3672    description = atapi.ATFieldProperty('description') 
     73    spreadsheet_id = atapi.ATFieldProperty('spreadsheet_id') 
     74    worksheet_id = atapi.ATFieldProperty('worksheet_id') 
    3775 
    3876    # -*- Your ATSchema to Python Property Bridges Here ... -*- 
Note: See TracChangeset for help on using the changeset viewer.