[Zope] FAQ: How to add a ZClass
Casey Duncan
cduncan@kaivo.com
Thu, 14 Jun 2001 11:05:04 -0600
Ulrich Wisser wrote:
>
> Hello,
>
> I know this is a FAQ but I didn't manage to add a ZClass
> to a folder in DTML although I followed all steps in the How-To.
> My new ZClass needs only to have an 'id', so I just go with
> the default installation.
> Here is what I do:
>
> Create a product, name 'tip'
> In the product create a ZClass name 'kingkong'
> In folder /admin I have DTML Method 'addTip' which does
>
> <dtml-with "manage_addProduct['tip']">
> <dtml-call "kingkong_add(_, REQUEST, NoRedir=1)">
> </dtml-with>
>
> When I call addTip?id=123
>
> I get an NameError. Traceback says
>
> Error Type: NameError
> Error Value: kingkong
>
[snip]
I see references to method called dtTipp. Please submit the code for
this method, I believe it may be the culprit.
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>