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

All Samples(94)  |  Call(85)  |  Derive(0)  |  Import(9)

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/browser/newslisting.py   ftw.contentpage(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from zope.interface import implements
from ftw.contentpage import _
 
 
    def description(self):
        return _(u'label_feed_desc',
                 default=u'${title} - News Feed',
                 mapping={'title': self.context.Title().decode('utf-8')})
 

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/content/addressblock.py   ftw.contentpage(Download)
from AccessControl import ClassSecurityInfo
from Acquisition import aq_parent
from borg.localrole.interfaces import IFactoryTempFolder
from ftw.contentpage import _
from ftw.contentpage import config
        default=True,
        widget=atapi.BooleanWidget(
        label=_(u'label_show_title',
                default=u'Show Title'))),
 
        default_method='getDefaultAddressTitle',
        widget=atapi.StringWidget(
            label=_(u'label_addressTitle',
                    default=u'Address Title'))),
 
    atapi.StringField(
        name='department',
        schemata='default',
        widget=atapi.StringWidget(
            label=_(u'label_department',
        schemata='default',
        widget=atapi.StringWidget(
            label=_(u'label_address',
                    default=u'Address'))),
 

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/portlets/news_portlet.py   ftw.contentpage(Download)
from Acquisition import aq_parent, aq_inner
from DateTime import DateTime
from ftw.contentpage import _
from plone.app.portlets.browser.interfaces import IPortletAddForm
from plone.app.portlets.browser.interfaces import IPortletEditForm
class INewsPortlet(IPortletDataProvider):
 
    portlet_title = schema.TextLine(
        title=_(u'Title'),
        description=u'',
        required=True,
        default=u'')
 
    show_image = schema.Bool(title=_(u'label_show_image'),
 
    path = schema.List(
        title=_(u"Path"),
        description=u"",
        value_type=schema.Choice(
    )
 
    only_context = schema.Bool(title=_(u'label_only_context'),
                               description=_('help_only_context'),
                               default=True,

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/content/listingblock.py   ftw.contentpage(Download)
from AccessControl import ClassSecurityInfo
from ftw.contentpage import _
from ftw.contentpage.config import PROJECTNAME
from ftw.contentpage.content.schema import finalize
from ftw.contentpage.interfaces import IListingBlock
        default=True,
        widget=atapi.BooleanWidget(
        label=_(u'label_show_title',
                default=u'Show Title'))),
 
        vocabulary='getColumns',
        widget=atapi.InAndOutWidget(
        label=_(u'Columns',
                default=u'Columns'))),
 
        vocabulary='getSortIndexVocabulary',
        widget=atapi.SelectionWidget(
            label=_(u'label_sort_on', default=u'Sort On'),
            description=_(u'help_sort_on', default=u''),
            format='select',

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/content/textblock.py   ftw.contentpage(Download)
from AccessControl import ClassSecurityInfo
from ftw.contentpage import _
from ftw.contentpage import config
from ftw.contentpage.content.schema import finalize
from ftw.contentpage.interfaces import ITextBlock
        default=0,
        widget=atapi.BooleanWidget(
        label=_(u'label_show_title',
                default=u'Show Title'))),
 
        default_output_type='text/x-html-safe',
        widget=atapi.RichWidget(
            label=_(u'label_text',
                    default=u'Text'),
                    rows=25)),
        schemata='image',
        widget=atapi.ImageWidget(
            label=_(u'label_image',
                    default=u'Image'))),
 
        default=0,
        widget=atapi.BooleanWidget(
            label=_(u'label_image_clickable',
                    default=u'Image clickable'),
            description=_(u'description_image_clickable',

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/content/eventpage.py   ftw.contentpage(Download)
from AccessControl import ClassSecurityInfo
from ftw.calendarwidget.browser.widgets import FtwCalendarWidget
from ftw.contentpage import _
from ftw.contentpage.config import PROJECTNAME
from ftw.contentpage.content.contentpage import ContentPage
        widget=FtwCalendarWidget(
            helper_js=('++resource++ftw.contentpage.resources/start_end_date_helper.js',),
            label=_(u'label_event_start', default=u'Event Starts'),
            description=_(u'help_start',
                          default=u"Date and Time, when the event begins."),
        languageIndependent=True,
        widget=FtwCalendarWidget(
            label=_(u'label_event_end', default=u'Event Ends'),
            description=_(u'help_end',
                          default=u"Date and Time, when the event ends."),

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/browser/listingblock_view.py   ftw.contentpage(Download)
from Products.CMFPlone.utils import getToolByName
from Products.Five.browser import BrowserView
from ftw.contentpage import _
from ftw.table import helper
from ftw.table.interfaces import ITableGenerator
    def columns(self):
        columns = (
            {'column': 'getContentType',
             'column_title': _(u'column_type', default=u'Type'),
             'sort_index': 'getContentType',
             'transform': download_link(icon=True, icon_only=True)},
 
            {'column': 'Title',
             'column_title': _(u'column_title', default=u'Title'),
 
            {'column': 'modified',
             'column_title': _(u'column_modified', default=u'modified'),
             'sort_index': 'modified',
             'transform': helper.readable_date,
             },
 
            {'column': 'Creator',
             'column_title': _(u'column_creater', default=u'creater'),

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/browser/feedback.py   ftw.contentpage(Download)
from email.header import Header
from email.mime.text import MIMEText
from ftw.contentpage import _
from plone.z3cform.layout import wrap_form
from Products.CMFCore.utils import getToolByName
class IFeedbackView(Interface):
    """Interface for z3c.form"""
    sender = schema.TextLine(title=_(u"Sender_Name", default=u"Name"),
                             required=True)
    email = schema.TextLine(title=_(u"mail_address", default="E-Mail"),
                            required=True,
                            constraint=is_email)
    subject = schema.TextLine(title=_(u"label_subject", default="Subject"),
                              required=True)
    message = schema.Text(title=_(u"label_message", default="Message"),

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/extender.py   ftw.contentpage(Download)
from archetypes.schemaextender.field import ExtensionField
from archetypes.schemaextender.interfaces import IOrderableSchemaExtender
from ftw.contentpage import _
from ftw.contentpage.interfaces import IAuthority
from ftw.contentpage.interfaces import IAuthoritySupport
        roleBasedAdd=True,
        widget=KeywordWidget(
            label=_(u'label_categories', default=u'Categories'),
            description=_(u'help_categories',
                          default=u'Category for contentlisting'),
        write_permission='ftw.contentpage: Toggle IAuthority marker interface',
        widget=BooleanWidget(
            label=_(u'label_mark_as_authority',
                    default=u'Mark content for listings'),
            description=_(u'help_mark_as_authority',