"context.getInstrument() and context.getInstrument().UID() or None", widget=ComputedWidget(visible=False, ), ), StringField( "Type", vocabulary="getTaskTypes", widget=ReferenceWidget( checkbox_bound=0, label=_("Task type", "Type"), ), ), RecordsField( "ScheduleCriteria", required=1, type="schedulecriteria", widget=ScheduleInputWidget(label=_("Criteria"), ), ), TextField( "Considerations", default_content_type="text/plain", allowed_content_types=("text/plain", ), default_output_type="text/plain", widget=TextAreaWidget( label=_("Considerations"), description=_("Remarks to take into account before performing the " "task"), ), ), )) IdField = schema['id']
), StringField('Type', vocabulary = "getTaskTypes", widget = ReferenceWidget( checkbox_bound = 1, label = _("Task type", "Type"), ), ), RecordsField('ScheduleCriteria', required=1, type='schedulecriteria', widget=ScheduleInputWidget( label=_('Criteria'), ), ), TextField('Considerations', default_content_type = 'text/x-web-intelligent', allowable_content_types = ('text/x-web-intelligent',), default_output_type="text/html", widget = TextAreaWidget( label = _("Considerations"), description = _("Remarks to take into account before performing the task"), ), ), )) IdField = schema['id']