Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(63)  |  Call(56)  |  Derive(0)  |  Import(7)
Factory for creating i18n messages.

src/s/c/sc.social.like-HEAD/sc/social/like/controlpanel/likes.py   sc.social.like(Download)
from Products.CMFPlone.utils import getToolByName
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from sc.social.like import LikeMessageFactory as _
from sc.social.like.plugins import IPlugin
from zope import schema
class IProvidersSchema(Interface):
    """ General Configurations """
 
    enabled_portal_types = schema.Tuple(
        title=_(u'Content types'),
        description=_(
            u'help_portal_types',
 
    plugins_enabled = schema.Tuple(
        title=_(u'Plugins'),
        description=_(
            u'help_enabled_plugins',

src/s/c/sc.social.like-2.0b1/sc/social/like/controlpanel/likes.py   sc.social.like(Download)
from Products.CMFPlone.utils import getToolByName
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from sc.social.like import LikeMessageFactory as _
from sc.social.like.plugins import IPlugin
from zope import schema
class IProvidersSchema(Interface):
    """ General Configurations """
 
    enabled_portal_types = schema.Tuple(
        title=_(u'Content types'),
        description=_(
            u'help_portal_types',
 
    plugins_enabled = schema.Tuple(
        title=_(u'Plugins'),
        description=_(
            u'help_enabled_plugins',

src/s/c/sc.social.like-HEAD/sc/social/like/plugins/facebook/controlpanel.py   sc.social.like(Download)
from Products.CMFDefault.formlib.schema import ProxyFieldProperty as PFP
from Products.CMFPlone.interfaces import IPloneSiteRoot
from sc.social.like import LikeMessageFactory as _
from sc.social.like.controlpanel.likes import BaseControlPanelAdapter
from zope import schema
 
verbs = SimpleVocabulary([
    SimpleTerm(value=u'like', title=_(u'Like')),
    SimpleTerm(value=u'recommend', title=_(u'Recommend')),
])
class IFacebookSchema(Interface):
    """ Facebook configurations """
 
    fbaction = schema.Choice(
        title=_(u'Verb to display'),
        description=_(
            u'help_verb_display',

src/s/c/sc.social.like-2.0b1/sc/social/like/plugins/facebook/controlpanel.py   sc.social.like(Download)
from Products.CMFDefault.formlib.schema import ProxyFieldProperty as PFP
from Products.CMFPlone.interfaces import IPloneSiteRoot
from sc.social.like import LikeMessageFactory as _
from sc.social.like.controlpanel.likes import BaseControlPanelAdapter
from zope import schema
 
verbs = SimpleVocabulary([
    SimpleTerm(value=u'like', title=_(u'Like')),
    SimpleTerm(value=u'recommend', title=_(u'Recommend')),
])
class IFacebookSchema(Interface):
    """ Facebook configurations """
 
    fbaction = schema.Choice(
        title=_(u'Verb to display'),
        description=_(
            u'help_verb_display',

src/s/c/sc.social.like-HEAD/sc/social/like/plugins/twitter/controlpanel.py   sc.social.like(Download)
from Products.CMFDefault.formlib.schema import ProxyFieldProperty as PFP
from Products.CMFPlone.interfaces import IPloneSiteRoot
from sc.social.like import LikeMessageFactory as _
from sc.social.like.controlpanel.likes import BaseControlPanelAdapter
from zope import schema
class ITwitterSchema(Interface):
    """ Twitter configurations """
 
    twittvia = schema.TextLine(
        title=_(u'Twitter nick'),
        description=_(
            u'help_your_twitter_nick',
class ProviderControlPanel(ControlPanelForm):
    """ """
    form_fields = FormFields(ITwitterSchema)
 
    label = _('Social: Twitter settings')
    description = _('Configure settings for Twitter integration.')

src/s/c/sc.social.like-2.0b1/sc/social/like/plugins/twitter/controlpanel.py   sc.social.like(Download)
from Products.CMFDefault.formlib.schema import ProxyFieldProperty as PFP
from Products.CMFPlone.interfaces import IPloneSiteRoot
from sc.social.like import LikeMessageFactory as _
from sc.social.like.controlpanel.likes import BaseControlPanelAdapter
from zope import schema
class ITwitterSchema(Interface):
    """ Twitter configurations """
 
    twittvia = schema.TextLine(
        title=_(u'Twitter nick'),
        description=_(
            u'help_your_twitter_nick',
class ProviderControlPanel(ControlPanelForm):
    """ """
    form_fields = FormFields(ITwitterSchema)
 
    label = _('Social: Twitter settings')
    description = _('Configure settings for Twitter integration.')

src/r/e/redomino.social-1.2/redomino/social/controlpanel/likes.py   redomino.social(Download)
from plone.fieldsets.fieldsets import FormFieldsets
from plone.app.controlpanel.form import ControlPanelForm
from sc.social.like import LikeMessageFactory as _
from zope.component import adapts
from zope.interface import implements
class ILinkedinSchema(Interface):
    """ Linkedin configurations """
 
    linkedin_enabled = Bool(
        title=_(u"Enable Linkedin button"),
linkedinset = FormFieldsets(ILinkedinSchema)
linkedinset.id = 'linkedinset'
linkedinset.label = _(u'Linkedin settings')
 
class IPinterestSchema(Interface):
    """ Pinterest configurations """
 
    pinterest_enabled = Bool(
        title=_(u"Enable Pinterest button"),
pinterestset = FormFieldsets(IPinterestSchema)
pinterestset.id = 'pinterestset'
pinterestset.label = _(u'Pinterest settings')
 
class ProvidersControlPanel(OriginalProvidersControlPanel):