[Zope] ZClasses on top of my Python classes?
Max Møller Rasmussen
maxm@normik.dk
Thu, 16 Nov 2000 08:37:01 +0100
From: Randall Kern [mailto:randy@teamkern.net]
>I've seen several doc tidbits suggesting one create ZClasses derived from
their
>Python classes, sticking all the biz logic in the python classes, and the
>presentation in the ZClasses...
>Could someone provide some insight into why this is better than simply
writing
>separate python classes for logic and presentation? (Although I have to
admit
>hitting the "Restart Server" button every time I make a typo is getting
old)
Well one thing is that it clearly separates logic from presentation, and if
you know zClasses it is easier to get started with while stille being nice
to program in Python.
You can reuse the same Python logic and give it several different interfaces
in several zClasses.
Regards Max M