[Zope] Web pages as Object Classes

Max M maxm at mxm.dk
Mon Feb 2 05:56:30 EST 2004


Paolo Losi wrote:

 > The idea is to have an "abstract" superclass which
 > defines the basic structure of the page:
 > - look and feel (via css for example)
 > - basic container structure (I get a menu on the left,
 >   a login status on the right top...)
 >
 > A very easy example just to get the idea could be:
 >
 > class MySitePage():
 >     def render(self):
 >         self.header()
 >         self.menu()
 >         self.login_status()
 >         self.content()
 >         self.footer()
 >
 >  From what I've seen PTL is not flexible enough
 > to implement this approach... am I wrong?
 > Is it better to look into ZClasses?

You should develop a Python product, and then use zpt for views.

When you understand the connection, it is much stronger than your approach.


regards Max M



More information about the Zope mailing list