def vocabulary_filters(self): """The name of the field's vocabulary.""" choice = IChoice(self.context) if choice.vocabulary is None: # We need the vocabulary to get the supported filters. raise ValueError("The %r.%s interface attribute doesn't have its " "vocabulary specified." % (choice.context, choice.__name__)) return vocabulary_filters(choice.vocabulary)
def vocabulary_filters(self): """The name of the field's vocabulary.""" choice = IChoice(self.context) if choice.vocabulary is None: # We need the vocabulary to get the supported filters. raise ValueError( "The %r.%s interface attribute doesn't have its " "vocabulary specified." % (choice.context, choice.__name__)) return vocabulary_filters(choice.vocabulary)
def vocabulary_filters(self): return vocabulary_filters(self.vocabulary)
def sharing_vocabulary_filters(self): return vocabulary_filters(self.sharing_vocabulary)