def __call__(self): terms = [('S', _(u'Small')), ('M', _(u'Medium')), ('L', _(u'Large')), ('X', _(u'X-Large'))] vocab = SimpleVocabulary( [SimpleTerm(value=v, title=t) for v, t in terms]) return vocab
def __call__(self): terms = [('no-payment', _(u'No Payment')), ] vocab = SimpleVocabulary( [SimpleTerm(value=v, title=t) for v, t in terms]) return vocab
def __call__(self): terms = [('basic', _(u'Basic')), ('student', _(u'Student'))] vocab = SimpleVocabulary( [SimpleTerm(value=v, title=t) for v, t in terms]) return vocab
from five import grok from collective.grok import gs from collective.grok import i18n from Products.CMFPlone.interfaces import INonInstallable from conference.registration import MessageFactory as _ PROJECTNAME = 'conference.registration' PROFILE_ID = 'conference.registration:default' # Default Profile gs.profile(name=u'default', title=_(u'conference.registration'), description=_(u'Installs conference.registration'), directory='profiles/default') # Uninstall Profile gs.profile(name=u'uninstall', title=_(u'Uninstall conference.registration'), description=_(u'Uninstall conference.registration'), directory='profiles/uninstall') i18n.registerTranslations(directory='locales') class HiddenProfiles(grok.GlobalUtility): grok.implements(INonInstallable)