Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 def vocabulary_filters(self):
     return vocabulary_filters(self.vocabulary)
Beispiel #4
0
 def sharing_vocabulary_filters(self):
     return vocabulary_filters(self.sharing_vocabulary)
 def vocabulary_filters(self):
     return vocabulary_filters(self.vocabulary)
Beispiel #6
0
 def sharing_vocabulary_filters(self):
     return vocabulary_filters(self.sharing_vocabulary)