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

All Samples(18)  |  Call(16)  |  Derive(0)  |  Import(2)

src/c/o/collective.folderishtypes-1.8/collective/folderishtypes/browser/portlet_contextual_contents.py   collective.folderishtypes(Download)
from zope.interface import implements
 
from collective.folderishtypes import MsgFact as _
 
 
class IContextualContentsPortlet(IPortletDataProvider):
 
    name = schema.TextLine(
            title=_(u"ctxcontents_label_title", default=u"Title"),
            description=_(u"ctxcontents_help_title",
 
    allowed_types = schema.Tuple(
        title=_(u"ctxcontents_label_allowed_types", u"Allowed Types"),
        description=_(u"ctxcontents_help_allowed_types", u"Select the content types that should be shown."),
        default=DEFAULT_ALLOWED_TYPES,

src/c/o/collective.folderishtypes-1.8/collective/folderishtypes/browser/listing_portlet.py   collective.folderishtypes(Download)
from zope.component import getMultiAdapter
 
from collective.folderishtypes import MsgFact as _
from collective.folderishtypes.interfaces import IFolderishType
 
    def title(self):
        return _(u"listingportlet_title", u"Folderish Contenttype Listing Portlet")
 
class AddForm(base.NullAddForm):
    form_fields = form.Fields(IListingPortlet)
    label = _(u"listingportlet_label_add", u"Add portlet for folderish types")
    description = _(u"listingportlet_help_add", u"This portlet shows the contents of folderish types.")