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

All Samples(31)  |  Call(28)  |  Derive(0)  |  Import(3)

src/p/r/Products.windowZ-1.5/Products/windowZ/content/Window.py   Products.windowZ(Download)
from Products.windowZ.interfaces import IWindow
from Products.windowZ.config import PROJECTNAME
from Products.windowZ import WindowZMessageFactory as _
 
schema = Schema((
 
    StringField(
        name='page_width',
        widget=StringWidget(
            label=_('windowZ_label_page_width', default="Page Width"),
        widget=StringWidget(
            label=_('windowZ_label_page_width', default="Page Width"),
            description=_('windowZ_help_page_width', default=(
                "Enter a value for the page width. If it's not provided "
                "the page width will assumes the default value defined in "
        name='page_height',
        widget=StringWidget(
            label=_('windowZ_label_page_height', default="Page Height"),
            description=_('windowZ_help_page_height', default=(
                "Enter a value for the page height. If it's not provided the "

src/p/r/Products.windowZ-1.5/Products/windowZ/interfaces.py   Products.windowZ(Download)
from zope.schema import TextLine, Bool
 
from Products.windowZ import WindowZMessageFactory as _
 
class IWindow(zope.interface.Interface):
class IWindowZSettings(zope.interface.Interface):
    """ Default settings for windowZ content objects """
 
    page_width = TextLine(
        title=_("windowZ_tool_label_page_width",
                default="Default Page Width"),
        description=_("windowZ_tool_help_page_width", default=(
 
    page_height = TextLine(
        title=_("windowZ_tool_label_page_height",
                default="Default Page Height"),
        description=_("windowZ_tool_help_page_height", default=(

src/p/r/Products.windowZ-1.5/Products/windowZ/controlpanel.py   Products.windowZ(Download)
from plone.app.controlpanel.form import ControlPanelForm
 
from Products.windowZ import WindowZMessageFactory as _
from Products.windowZ.interfaces import IWindowZControlPanelForm
from Products.windowZ.interfaces import IWindowZSettings
    windowzsettings = FormFieldsets(IWindowZSettings)
    windowzsettings.id = 'windowzsettings'
    windowzsettings.label = _(u'Settings')
 
    form_fields = FormFieldsets(windowzsettings)
 
    label = _(u"WindowZ Settings")
    description = _(u"Settings for the WindowZ iFrame contents.")
    form_name = _("WindowZ Settings")