[Zope3-dev] Re: RFC: Publication Post-Processing

Roger Ineichen dev at projekt01.ch
Thu Sep 15 16:45:28 EDT 2005


Hi Tonico  

> -----Original Message-----
> From: zope3-dev-bounces+dev=projekt01.ch at zope.org 
> [mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] On 
> Behalf Of Jim Fulton
> Sent: Thursday, September 15, 2005 10:16 PM
> To: Tonico Strasser
> Cc: zope3-dev at zope.org
> Subject: [Zope3-dev] Re: RFC: Publication Post-Processing
> 
> Tonico Strasser wrote:
> > Jim Fulton schrieb:
> > 
> >>
> >> At:
> >>
> >>   
> >> 
> http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitectu
> re/PublicationPostProcessing 
> >>
> >>
> >> I've put doesn some thoughs for discussion on making the 
> publication APIs
> >> more explicit and for supporting post processing tasks like adding
> >> standard look and feel or adding missing page components.
> >>
> > 
> > Hi,
> > 
> > as a UI designer I would like to have a page Object (not 
> the context 
> > object) that I can adapt to IPublicationResult.
> > 
> > I would like contracts for HTML pages, e.g something like:
> > 
> > class IHTMLPage(zope.interface.Interface):
> >     """Provides information for a generic HTML Page"""
> >     title = ''
> >     description = ''
> > 
> > class IZMIPage(IHTMLPage):
> >     "Provides information for a basic ZMI page"""
> >     scripts = [] # ordererd List of IZMIScriptFiles
> >     styles = [] # ordered List of IZMIStylesheetFiles
> >     class_names = IZMICSSNames # class names mapping  with 
> standard keys
> >     id_names = IZMIIdNames # id names mapping with standard keys
> >     actions = [] # IZMIActions
> >     views = [] # IZMIViews
> >     # ... anything needed by a IZMIPageRenderer
> > 
> > class IHTMLPageRenderer(IPublicationResult):
> >     def render(obj, request, html_page):
> >         """Renders a HTML page"""
> > 
> > class IZMIPageRenderer(IHTMLPageRenderer)
> >     def render(obj, request, zmi_page):
> >         """Renders a ZMI page"""
> > 
> > A renderer should be able to use any template language to 
> do its job, 
> > e.g. ZPT, DTML, PHP, XSLT ... IMHO.

I think many poeple will love it if this would be possible.

> > Disclaimer: I guess the code above is garbage, this is just for 
> > discussion, I'm still learning the basics :)
> 
> This is an excellent thought experiment.

I agree, sounds interesting

> I think that, ultimately, we'll have to try some things out 
> (prototype,
> in other words) to see what works.  My short term (before Nov 1)
> goal is to see what sort of hooks we can put in the publisher 
> that allows
> these kinds of experiments wilthout making too many commitments.

If I'm right, you (Tonico) will also come to the Neckar sprint. 
right? Perhaps we can do some prototyping there.

Regards
Roger Ineichen

Projekt01 GmbH
www.projekt01.ch
_____________________________
END OF MESSAGE

> Jim
> 
> -- 
> Jim Fulton           mailto:jim at zope.com       Python Powered!
> CTO                  (540) 361-1714            http://www.python.org
> Zope Corporation     http://www.zope.com       http://www.zope.org
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: 
> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
> 
> 



More information about the Zope3-dev mailing list