[Zope-dev] Instantiating a ZClass in Zope from within a Python product
Kevin Dangoor
kid@kendermedia.com
Mon, 8 May 2000 20:49:16 -0400
----- Original Message -----
From: "Chris McDonough" <chrism@digicool.com>
To: "Michael Bernstein" <mbernstein@profitscape.com>
Cc: <zope-dev@zope.org>
Sent: Monday, May 08, 2000 6:21 PM
Subject: Re: [Zope-dev] Instantiating a ZClass in Zope from within a Python
product
> BTW, I doubt this method of grabbing a ZClass via unrestrictedTraverse
> should make its way into a howto because the right way to do this
> *SHOULD* be:
>
> klass = Control_Panel.Products..Product.Class._zclass_
> a = klass()
just to make sure I'm not off my rocker, there should be a "self." in front
of Control_Panel, right?
Kevin