[Zope] Newbie Question: Creating a ZClass

Michael mlewis@exasource.com
Fri, 13 Dec 2002 09:51:36 -0700


Can you provide examples of the code you've used up to this point?  It's 
really hard to say without seeing what you've done so far and most people 
won't have the time to read chapter 14 to try and figure it out.  FYI, I had 
some problems initially with the book examples as well, so I tried out the 
"How to build a searchable job board" tutorial and it does work.  it walks 
you through creating a product, ZClasses, making them Catalog Aware, 
building a search interface, a report, etc.

Michael


On Friday 13 December 2002 05:06 am, Ashley Lloyd wrote:
> I've tried two or three tutorials on Creating a ZClass, and seem to get the
> same type of error every time.
>
> Following the example in The Zope Book, Ch.14
> (http://www.zope.org/Documentation/Books/ZopeBook/current/CustomZopeObjects
>.stx)
>
> when I get to the part "Go ahead and select ZooExhibit from the add list
> and create a new Exhibit with the id 'FangedRabbits'. ", I get the
> following error after clicking Add:
> Error Type: NameError
> Error Value: global name 'ZooExhibit' is not defined
>
> Can anyone help with this? I've looked at posts in the past that have asked
> the same, but there doesn't seem to be anything that helps.
>
> Thanks very much
>
> Ashley