Пример #1
0
 def getTerm(self, item):
     return zope.schema.vocabulary.SimpleTerm(item,
                                              token=simple_form_key(item),
                                              title=self.getTitle(item))
Пример #2
0
def getContactFormKey(contact):
    doc_id = getUtility(IIntIds).getId(contact)
    return 'contacts.%s%x' % (simple_form_key(contact), doc_id)
Пример #3
0
 def getTerm(self, item):
     return zope.schema.vocabulary.SimpleTerm(
         item,
         token=simple_form_key(item),
         title=self.getTitle(item))
Пример #4
0
def getContactFormKey(contact):
    doc_id = getUtility(IIntIds).getId(contact)
    return 'contacts.%s%x' % (simple_form_key(contact), doc_id)