2 Feb
2004
2 Feb
'04
10:56 a.m.
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