Beispiel #1
0
 def getWorksheetTemplates(self):
     """Return WS Templates
     """
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = "bika_setup_catalog"
     return vocabulary(portal_type="WorksheetTemplate",
                       sort_on="sortable_title")
Beispiel #2
0
 def Vocabulary_SampleType(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     folders = [self.bika_setup.bika_sampletypes]
     if IClient.providedBy(self.aq_parent):
         folders.append(self.aq_parent)
     return vocabulary(allow_blank=True, portal_type='SampleType')
 def getServices(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     categoryUID = self.request.get('list_getCategoryUID', '')
     if categoryUID:
         return vocabulary(portal_type='AnalysisService',
                           getCategoryUID=categoryUID,
                           sort_on='sortable_title')
     return vocabulary(portal_type='AnalysisService',
                       sort_on='sortable_title')
Beispiel #4
0
 def Vocabulary_Priority(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     return vocabulary(allow_blank=True, portal_type='ARPriority')
Beispiel #5
0
 def Vocabulary_ContainerType(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     return vocabulary(allow_blank=True, portal_type='ContainerType')
Beispiel #6
0
 def Vocabulary_SampleMatrix(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     return vocabulary(allow_blank=True, portal_type='SampleMatrix')
Beispiel #7
0
 def Vocabulary_LicenseType(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     return vocabulary(allow_blank=True, portal_type='ClientType')
 def getWorksheetTemplates(self):
     """ Return WS Templates """
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     return vocabulary(portal_type='WorksheetTemplate',
                       sort_on='sortable_title')
 def getCategories(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     return vocabulary(portal_type='AnalysisCategory',
                       sort_on='sortable_title')
 def getClients(self):
     vocabulary = CatalogVocabulary(self)
     return vocabulary(portal_type='Client', sort_on='sortable_title')
Beispiel #11
0
 def Vocabulary_LicenseType(self):
     vocabulary = CatalogVocabulary(self)
     vocabulary.catalog = 'bika_setup_catalog'
     return vocabulary(allow_blank=True, portal_type='ClientType')