Esempio n. 1
0
                 'Preservation':'',
                 'container_uid':'',
                 'preservation_uid':''}],
     widget=ARTemplatePartitionsWidget(
         label = _("Sample Partitions"),
         description = _("Configure the sample partitions and preservations " + \
                         "for this template. Assign analyses to the different " + \
                         "partitions on the template's Analyses tab"),
         combogrid_options={
             'Container': {
                 'colModel': [
                     {'columnName':'container_uid', 'hidden':True},
                     {'columnName':'Container', 'width':'30', 'label':_('Container')},
                     {'columnName':'Description', 'width':'70', 'label':_('Description')}],
                 'url': 'getcontainers',
                 'showOn': True,
                 'width': '550px'
             },
             'Preservation': {
                 'colModel': [
                     {'columnName':'preservation_uid', 'hidden':True},
                     {'columnName':'Preservation', 'width':'30', 'label':_('Preservation')},
                     {'columnName':'Description', 'width':'70', 'label':_('Description')}],
                 'url': 'getpreservations',
                 'showOn': True,
                 'width': '550px'
             },
         },
      ),
 ),
 ReferenceField('AnalysisProfile',
     schemata = 'Analyses',
Esempio n. 2
0
 widget=ARTemplatePartitionsWidget(
     label=_("Sample Partitions"),
     description=_(
         "Configure the sample partitions and preservations "
         "for this template. Assign analyses to the different "
         "partitions on the template's Analyses tab"),
     combogrid_options={
         "Container": {
             "colModel": [{
                 "columnName": "container_uid",
                 "hidden": True
             }, {
                 "columnName": "Container",
                 "width": "30",
                 "label": _("Container")
             }, {
                 "columnName": "Description",
                 "width": "70",
                 "label": _("Description")
             }],
             "url":
             "getcontainers",
             "showOn":
             True,
             "width":
             "550px"
         },
         "Preservation": {
             "colModel": [{
                 "columnName": "preservation_uid",
                 "hidden": True
             }, {
                 "columnName": "Preservation",
                 "width": "30",
                 "label": _("Preservation")
             }, {
                 "columnName": "Description",
                 "width": "70",
                 "label": _("Description")
             }],
             "url":
             "getpreservations",
             "showOn":
             True,
             "width":
             "550px"
         },
         "SampleType": {
             "colModel": [{
                 "columnName": "sampletype_uid",
                 "hidden": True
             }, {
                 "columnName": "SampleType",
                 "width": "30",
                 "label": _("SampleType")
             }, {
                 "columnName": "Description",
                 "width": "70",
                 "label": _("Description")
             }],
             "url":
             "get_sampletypes",
             "showOn":
             True,
             "width":
             "550px"
         },
     },
 ),
Esempio n. 3
0
     type='artemplate_parts',
     subfields=('part_id', 'container_uid', 'preservation_uid'),
     subfield_labels={
         'part_id': _('Partition'),
         'container_uid': _('Container'),
         'preservation_uid': _('Preservation')
     },
     default=[{
         'part_id': 'part-1',
         'container_uid': '',
         'preservation_uid': ''
     }],
     widget=ARTemplatePartitionsWidget(
         label=_("Sample Partitions"),
         description=_(
             "Configure the sample partitions and preservations "
             "for this template. Assign analyses to the different "
             "partitions on the template's Analyses tab"),
     )),
 ReferenceField(
     'AnalysisProfile',
     schemata='Analyses',
     required=0,
     multiValued=0,
     allowed_types=('AnalysisProfile', ),
     vocabulary='AnalysisProfiles',
     relationship='ARTemplateAnalysisProfile',
     widget=ReferenceWidget(
         checkbox_bound=1,
         label=_("Analysis Profile"),
         description=_(