[Zope-PTK] User Sources and ZClasses (Building ZPatterns)

Steve Alexander s.alexander@lancaster.ac.uk
Thu, 18 May 2000 17:02:49 +0100


Lalo Martins wrote:
> 
> On Thu, May 18, 2000 at 10:17:18AM -0400, Kevin Dangoor wrote:
> >
> > You probably want to create a Python base class for your ZClass and store
> > the password in self._password. That way you can't get access to it via DTML
> > beyond any bits you code up in Python to allow for management of the
> > passwords...
> 
> This works, but of course you realize how ugly a kludge it is.

Ok -- so make it a reusable mixin class, and stick it in a Product :-)

Then, make it a download from Zope.org :-)

To make it extra reusable, you could make the python class a handler for
a dictionary of "private properties", with appropriate methods to set
and validate against them.

--
Steve Alexander
Software Engineer
Cat-Box limited