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 getWorksheetTemplates(self): """Return WS Templates """ vocabulary = CatalogVocabulary(self) vocabulary.catalog = "bika_setup_catalog" return vocabulary(portal_type="WorksheetTemplate", sort_on="sortable_title")
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')
def Vocabulary_Priority(self): vocabulary = CatalogVocabulary(self) vocabulary.catalog = 'bika_setup_catalog' return vocabulary(allow_blank=True, portal_type='ARPriority')
def Vocabulary_ContainerType(self): vocabulary = CatalogVocabulary(self) vocabulary.catalog = 'bika_setup_catalog' return vocabulary(allow_blank=True, portal_type='ContainerType')
def Vocabulary_SampleMatrix(self): vocabulary = CatalogVocabulary(self) vocabulary.catalog = 'bika_setup_catalog' return vocabulary(allow_blank=True, portal_type='SampleMatrix')
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')