def getTerm(self, item): return zope.schema.vocabulary.SimpleTerm(item, token=simple_form_key(item), title=self.getTitle(item))
def getContactFormKey(contact): doc_id = getUtility(IIntIds).getId(contact) return 'contacts.%s%x' % (simple_form_key(contact), doc_id)
def getTerm(self, item): return zope.schema.vocabulary.SimpleTerm( item, token=simple_form_key(item), title=self.getTitle(item))