Example #1
0
 Field('masterquest', 'integer', default=0),
 Field('subquests', 'list:integer'),
 Field('resolvemethod', 'string', default='Standard', label='Resolution Method'),
 Field('unpanswers', 'integer', default=0, writable=False, readable=False),
 Field('createdate', 'datetime', writable=False, label='Date Submitted', default=request.utcnow),
 Field('resolvedate', 'datetime', writable=False, label='Date Resolved'),
 Field('challengedate', 'datetime', writable=False, label='Date Challenged'),
 Field('answerreasons', 'text', writable=False, label='Reason1'),
 Field('answerreason2', 'text', writable=False, label='Reason2'),
 Field('answerreason3', 'text', writable=False, label='Reason3'),
 Field('duedate', 'datetime', label='Expiry Date', 
       default=(request.utcnow + datetime.timedelta(days=1)),
       comment='This only applies to items resolved by vote'),
 Field('responsible', label='Responsible'),
 Field('startdate', 'datetime', requires=IS_DATE(format=T('%Y-%m-%d')),
     label='Date Action Starts', widget=bsdatepicker_widget()),
 Field('enddate', 'datetime', requires=IS_DATE(format=T('%Y-%m-%d')),
 label='Date Action Ends', widget=bsdatepicker_widget()),
 Field('eventid', 'reference evt', label='Event'),
 Field('projid', 'reference project', label='Project'),
 Field('challenge', 'boolean', default=False),
 Field('shared_editing', 'boolean', default=True, label='Shared Edit', comment='Allow anyone to edit action status and dates'),
 Field('xpos', 'double', default=0.0, label='xcoord'),  # x pos on the eventmap
 Field('ypos', 'double', default=0.0, label='ycoord'),  # y pos on the eventmap
 Field('projxpos', 'double', default=0.0, label='projxcoord'),  # x pos on projectmap
 Field('projypos', 'double', default=0.0, label='projycoord'),  # y pos on the projecttmap
 Field('coord', 'string', label='Lat/Longitude'),
 Field('question_long', 'double', default=0.0, label='Latitude', writable=False, readable=False),
 Field('question_lat', 'double', default=0.0, label='Longitude', writable=False, readable=False),
 Field('perccomplete', 'integer', default=0, label='Percent Complete', requires=IS_INT_IN_RANGE(0, 101,
       error_message='Must be between 0 and 100')),
Example #2
0
       label='Date Challenged'),
 Field('answerreasons', 'text', writable=False, label='Reason1'),
 Field('answerreason2', 'text', writable=False, label='Reason2'),
 Field('answerreason3', 'text', writable=False, label='Reason3'),
 Field('duedate',
       'datetime',
       label='Expiry Date',
       default=(request.utcnow + datetime.timedelta(days=1)),
       comment='This only applies to items resolved by vote'),
 Field('responsible', label='Responsible'),
 Field('actiongroup', 'reference actiongroup', label='Action Group'),
 Field('startdate',
       'datetime',
       requires=IS_DATE(format=T('%Y-%m-%d')),
       label='Date Action Starts',
       widget=bsdatepicker_widget()),
 Field('enddate',
       'datetime',
       requires=IS_DATE(format=T('%Y-%m-%d')),
       label='Date Action Ends',
       widget=bsdatepicker_widget()),
 Field('eventid', 'reference evt', label='Event'),
 Field('projid', 'reference project', label='Project'),
 Field('challenge', 'boolean', default=False),
 Field('shared_editing',
       'boolean',
       default=True,
       label='Shared Edit',
       comment='Allow anyone to edit action status and dates'),
 Field('xpos', 'double', default=0.0,
       label='xcoord'),  # x pos on the eventmap