[Zope3-dev] Re: Macro vs. Pagelet
Tonico Strasser
contact_tonico at yahoo.de
Tue Dec 14 08:02:04 EST 2004
Dominik Huber wrote:
> *an example from zope.app.demo.paglet:
>
> page-data .interfaces (interface between app dev. and web dev.):
>
> class IDemoPageData(Interface):
> """A sample content type for to test pagelet."""
>
> title = TextLine(
> title=_(u"Title"),
> description=_(u"Title of the sample"),
> default=u"",
> required=False)
>
> description = Text(
> title=_(u"Description"),
> description=_(u"Description of the sample"),
> default=u"",
> required=False)
>
And maybe:
class IDemoPageLayout(Interface):
"""A sample content layout for to test pagelet."""
element_ids = DemoPageElementIdNames(...)
element_classes = DemoPageElementClassNames(...)
scripts = DemoPageScripts(...)
stylesheets = DemoPageStylesheets(...)
icons = DemoPageIcons(...)
...
Tonico
More information about the Zope3-dev
mailing list