[Zope] Extending ZClasses

Peter Bengtsson mail@peterbe.com
Tue, 3 Jul 2001 16:35:40 +0200


> > How do I extend a ZClass? Overwrite general stuff that I want to
> > personalize for my own site.
>
> This is straigt forward: use the ZClass as base class.
>
> > Can I just create a new ZClass with my Product as the Base Class? and
then
> > create objects with the same ids.
> > Will that do it? Then I'll have to create a ZClass with a different id
and
> > meta type and that will complicate things.
>
> Thats the way to do it. Your python product does not even need to register
> for objectmanager, so you can make sure it has to be extendet with TTW
> ZClass. (I used it to avoid including html into filesystem, instead I
> provide only stubs in the python product and make the management interface
> and user interface thru the web with dtml and stuff (preferably ZPT
> nowadays)

I don't get it!
There are no python products here. Only ZClasses.
I didn't get any wiser from your mail to be honest, but I have not had any
good advice so far so overwriting with a new product has to be the way
forward.

Cheers, Peter


> HTH
> Tino Wildenhain
>
> > I have the Beehive ebook about ZClasses but that didn't help.
> >
> >
> > Cheers, Peter
> >
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )