Changeset 2659 in products


Ignore:
Timestamp:
Jul 9, 2010 3:49:35 PM (14 years ago)
Author:
liebster
Message:

Modified content schema (rename fields and switch 'worksheet_id' from sting field to integer field)

File:
1 edited

Legend:

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

    r2649 r2659  
    1515 
    1616    atapi.StringField( 
    17         name = 'spreadsheet_id', 
     17        name = 'spreadsheet_title', 
    1818        default='', 
    1919        searchable = True, 
    2020        required = True, 
    21         #languageIndependent=True, 
     21        languageIndependent=True, 
    2222        storage=atapi.AnnotationStorage(), 
    2323        widget = atapi.StringWidget( 
    2424            label = _( 
    25                 u'label_spreadsheet_id', 
    26                 default=u'Spreadsheet ID'), 
     25                u'label_spreadsheet_title', 
     26                default=u'Spreadsheet Title'), 
    2727            description=_( 
    28                 u'help_spreadsheet_id', 
    29                 default=u"Input spreadsheet ID."), 
     28                u'help_spreadsheet_title', 
     29                default=u"Please input title Google Spreadsheet."), 
    3030            size = 40, 
    3131        ), 
    3232    ), 
    3333 
    34     atapi.StringField( 
    35         name = 'worksheet_id', 
     34    atapi.IntegerField( 
     35        name = 'worksheet_index', 
    3636        default='', 
    3737        searchable = True, 
    3838        required = True, 
    39         #languageIndependent=True, 
     39        languageIndependent=True, 
    4040        storage=atapi.AnnotationStorage(), 
    41         widget = atapi.StringWidget( 
     41        widget = atapi.IntegerWidget( 
    4242            label = _( 
    43                 u'label_worksheet_id', 
    44                 default=u'Worksheet ID'), 
     43                u'label_worksheet_index', 
     44                default=u'Worksheet Index'), 
    4545            description=_( 
    46                 u'help_worksheet_id', 
    47                 default=u"Input worksheet ID."), 
    48             size = 40, 
     46                u'help_worksheet_index', 
     47                default=u"Please input worksheet index start from zero."), 
     48            size = 3, 
    4949        ), 
    5050    ), 
     
    7171    title = atapi.ATFieldProperty('title') 
    7272    description = atapi.ATFieldProperty('description') 
    73     spreadsheet_id = atapi.ATFieldProperty('spreadsheet_id') 
    74     worksheet_id = atapi.ATFieldProperty('worksheet_id') 
     73    spreadsheet_title = atapi.ATFieldProperty('spreadsheet_title') 
     74    worksheet_index = atapi.ATFieldProperty('worksheet_index') 
    7575 
    7676    # -*- Your ATSchema to Python Property Bridges Here ... -*- 
Note: See TracChangeset for help on using the changeset viewer.