def getExtraFieldsVocabulary(self): extra_fields = getAllExtraFields(self) vocab = [] for field in extra_fields: vocab.append((field['name'], field['label'])) return vocab
def extra_fields(self): return getAllExtraFields(self.context)