Did I find the right examples for you? yes no

All Samples(18)  |  Call(15)  |  Derive(0)  |  Import(3)

src/c/o/collective.portlet.quote-1.0.1/collective/portlet/quote/content/quote.py   collective.portlet.quote(Download)
from Products.ATContentTypes.content import schemata
 
from collective.portlet.quote import RandomQuoteMessageFactory as _
from collective.portlet.quote.interfaces import IQuote
from collective.portlet.quote.config import PROJECTNAME
        storage=atapi.AnnotationStorage(),
        widget=atapi.TextAreaWidget(
            label=_(u"Quote"),
            description=_(u"The quote"),
        ),
        storage=atapi.AnnotationStorage(),
        widget=atapi.StringWidget(
            label=_(u"Source"),
            description=_(u"Who said it?"),
        ),

src/c/o/collective.portlet.quote-1.0.1/collective/portlet/quote/randomquote.py   collective.portlet.quote(Download)
from plone.app.form.widgets.uberselectionwidget import UberSelectionWidget
 
from collective.portlet.quote import RandomQuoteMessageFactory as _
 
 
    """
    title = schema.TextLine(
        title=_(u"Portlet title"),
        default=_(u"Random Quote"),
        required=True,
    )
 
    show_title = schema.Bool(
        title=_(u"Show title"),
 
    target_folder = schema.Choice(
        title=_(u"Quote folder"),
        description=_(u"The folder that holds the quotes"),
        required=True,

src/c/o/collective.portlet.quote-1.0.1/collective/portlet/quote/interfaces/quote.py   collective.portlet.quote(Download)
from zope.app.container.constraints import containers
 
from collective.portlet.quote import RandomQuoteMessageFactory as _
 
class IQuote(Interface):
    """Quote"""
 
    # -*- schema definition goes here -*-
    link = schema.TextLine(
        title=_(u"Link"), 
        title=_(u"Link"), 
        required=False,
        description=_(u"A link to the quote"),
    )
 
    source = schema.TextLine(
        title=_(u"Source"), 
        required=True,
        description=_(u"Who said it?"),