Exemple #1
0
class ILogoDirective(Interface):

    for_ = GlobalInterface(
        title=u'The interface the context should provide.',
        required=False)

    layer = GlobalInterface(
        title=u'The interface the request should provide.',
        required=False)

    base = fields.Path(
        title=u'Relative path to the logo svg file.',
        required=True)

    logo = fields.Path(
        title=u'Relative path to the logo image file.',
        required=False)

    mobile = fields.Path(
        title=u'Relative path to the mobile logo image file.',
        required=False)

    primary_logo_scale = schema.Text(
        title=u'Relative path to the mobile logo image file.',
        required=False)

    height = schema.Text(
        title=u'Relative path to the mobile logo image file.',
        required=False)

    mobile_height = schema.Text(
        title=u'Relative path to the mobile logo image file.',
        required=False)
Exemple #2
0
class IReaderDirective(Interface):
    """ ZCML Directive that registers a naaya.ldapdump reader """
    path = fields.Path(
        title=_("Path"),
        description=_("Path to configuration file for this dump"),
        required=True,
    )
Exemple #3
0
class IIconDirective(Interface):

    for_ = GlobalInterface(
        title=u'The interface the context should provide.',
        required=False)

    layer = GlobalInterface(
        title=u'The interface the request should provide.',
        required=False)

    base = fields.Path(
        title=u'Relative path to the icon file.',
        required=True)

    favicon = fields.Path(
        title=u'Relative path to the favicon file.',
        required=False)
class IRegisterFile(interface.Interface):

    path = fields.Path(
        title=u"File path",
        description=u"This is the path name of the file to be registered.")

    title = schema.Text(title=u"Short summary of the file",
                        description=u"This will be used in file listings",
                        required=False)
class ITemplateOverridesDirective(Interface):
    """Directive which registers a directory with template overrides."""

    directory = fields.Path(title=u"Path to directory", required=True)

    layer = GlobalObject(
        title=u"The layer the overrides should be enabled for",
        description=u"By default overrides are used for all layers.",
        required=False)
Exemple #6
0
class IPortletTemplatesDirective(Interface):
    """Directive which registers a directory with templates for the given
    portlet type."""

    directory = fields.Path(title=u"Path to directory", required=True)

    interface = fields.GlobalInterface(
        title=_(u"Portlet type interface"),
        description=_(u"Should correspond to the public interface "
                      u"of the portlet assignment"),
        required=True)
class IPortletRendererDirective(Interface):
    """Register a portlet renderer, i.e. a different view of a portlet
    """

    # The portlet data provider type must be given

    portlet = configuration_fields.GlobalObject(
        title=_("Portlet data provider type for which this renderer is used"),
        description=_("An interface or class"),
        required=True)

    # Use either class or template to specify the custom renderer

    class_ = configuration_fields.GlobalObject(
        title=_("Class"),
        description=_("A class acting as the renderer."),
        required=False,
    )

    template = configuration_fields.Path(
        title=_(u"The name of a template that implements the renderer."),
        description=
        _(u"If given, the default renderer for this portlet will be used, but with this template"
          ),
        required=False)

    # Use these to discriminate the renderer.

    for_ = configuration_fields.GlobalObject(
        title=_("Context object type for which this renderer is used"),
        description=_("""An interface or class"""),
        required=False,
        default=Interface,
    )

    layer = configuration_fields.GlobalObject(
        title=_("Browser layer for which this renderer is used"),
        description=_("""An interface or class"""),
        required=False,
        default=IDefaultBrowserLayer,
    )

    view = configuration_fields.GlobalObject(
        title=_("Browser view type for this this renderer is used"),
        description=_("An interface or class"),
        required=False,
        default=IBrowserView)

    manager = configuration_fields.GlobalObject(
        title=_("Portlet manager type for which this renderer is used"),
        description=_("An interface or class"),
        required=False,
        default=IPortletManager)
Exemple #8
0
class IOpenOfficeConfigSchema(interface.Interface):
    path = fields.Path(title=u"UNO Python Path",
                       description=u"This is the path to UNO enabled Python",
                       required=True)
    port = schema.Int(title=u"OpenOffice.org Port",
                      description=u"Port on which OpenOffice is running",
                      required=True,
                      default=2002)
    maxConnections = schema.Int(
        title=u"Max Connectiond",
        description=u"Maximum number of simultaneous connections to OpenOffice",
        required=True,
        default=5)
class IOpenOfficePath(interface.Interface):
    path = fields.Path(
        title=u"OpenOffice.org Python Path",
        description=
        u"This is the path name of the openoffice to be used to generate pdf reports",
        required=True)
Exemple #10
0
class IRootPathDirective(Interface):
    path = fields.Path(
        title=_("Path"),
        description=_("Path prefix where to look for CIRCA zip files."),
        required=True,
    )