[Zope] zope product, object manager problem
David Hassalevris
bluepaul at earthlink.net
Mon Jun 14 22:47:57 EDT 2004
Hey John,
SimpleItem imports the mods but the Item Class does not inherit from them.
If I am wrong on this *sorry* lol.
I referred to the Zope Bible and its example product class does this:
-----------------------------------------------------------
>From OFS.SimpleItem import Item
>From Globals import Persistent
>From Acuisition import Implict
class helloClass(Item,Persistent, Implicit)
--------------------------------------------------------------
So for a reason Item *and* Peristent and Implict are imported and
subclassed... So unless something changed since zope version 2.5.0 its worth
a relook.
David
----- Original Message -----
From: "John Hunter" <jdhunter at ace.bsd.uchicago.edu>
To: "David Hassalevris" <bluepaul at earthlink.net>
Cc: <zope at zope.org>
Sent: Monday, June 14, 2004 6:20 PM
Subject: Re: [Zope] zope product, object manager problem
> >>>>> "David" == David Hassalevris <bluepaul at earthlink.net> writes:
>
> David> Hey John, Shouldn't your class also inherit from
> David> Globals.Persistent and Aquisition.Implicit?
>
> SimpleItem, from which my PersonImplemetation derives, already derives
> from these two classes, but you got my hopes up for a minute :-).
> Perhaps there is some initialization call for classes that derive from
> Globals.Persistent to make it do it's thing?
>
> David> BTW the Zope Bible has does good job describing the zope
> David> product developement. David
>
> Thanks, I'll take a look.
>
> JDH
More information about the Zope
mailing list