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

All Samples(33)  |  Call(30)  |  Derive(0)  |  Import(3)

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/interfaces.py   Products.BlingPortlet(Download)
from Products.BlingPortlet import BlingPortletMessageFactory as _
#from Products.BlingPortlet.vocabularies import changeVocabulary, orderingVocabulary
from plone.app.vocabularies.catalog import SearchableTextSourceBinder
from plone.portlets.interfaces import IPortletDataProvider
from zope.configuration.fields import Path
class IBaseBlingPortlet(IPortletDataProvider):
    name = schema.TextLine(
            title=_(u"label_bling_name_title", default=u"Title"),
            description=_(u"label_bling_name_description",
                          default=u"The title of the portlet."),
            default=u"",
            required=False)
 
    source = schema.Choice(
            title=_(u"label_bling_source_title", default=u"Bling Folder"),
    source = schema.Choice(
            title=_(u"label_bling_source_title", default=u"Bling Folder"),
            description=_(u'label_bling_source_description',
                          default=u"Search for and choose a Folder "
                                    "to act as the source of your bling."),

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/bling.py   Products.BlingPortlet(Download)
from Products.ATContentTypes.interface.image import IATImage
from Products.ATContentTypes.interface.news import IATNewsItem
from Products.BlingPortlet import BlingPortletMessageFactory as _
from Products.BlingPortlet.interfaces import IBlingPortlet, IBlingImage, IBlingSlideshowPortlet, IBlingable, IBlingSlideshowView, IBlingView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
class AddForm(base.AddForm):
    form_fields = form.Fields(IBlingPortlet)
    form_fields['source'].custom_widget = UberSelectionWidget
    label = _(u"Add Bling Portlet")
    description = _(u"This portlet displays bling.")
class SlideshowAddForm(base.AddForm):
    form_fields = form.Fields(IBlingSlideshowPortlet)
    form_fields['source'].custom_widget = UberSelectionWidget
    label = _(u"Add Bling Slideshow Portlet")
    description = _(u"This portlet displays animated bling.")

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/content.py   Products.BlingPortlet(Download)
from Products.ATContentTypes.content.image import ATImageSchema, ATImage
from Products.Archetypes import atapi
from Products.BlingPortlet import BlingPortletMessageFactory as _
from Products.BlingPortlet.interfaces import ILinkableImage
from Products.Five.browser import BrowserView
    atapi.TextField('link',
        widget = atapi.StringWidget(
            label = _(u'Link'),
            description = _(u'A link for the image.'),
        ),