[Zope] python product - newbie
Loren Stafford
lstaffor@dynalogic.com
Wed, 21 Jun 2000 09:03:05 -0700
You don't show the __init__.py file so it's hard to be sure, but...
Did you register the class? Here's the class registration from ZScheduler
http://www.zope.org/Members/lstaffor/ZScheduler
# register ZEvent class
try:
context.registerClass(
ZEvent.OneTimeZEvent,
permission = 'Add ZEvent',
constructors = (
ZEvent.manage_addOneTimeZEventForm,
ZEvent.manage_addOneTimeZEvent),
icon = 'www/OneTimeZEvent.gif')
context.registerBaseClass(ZEvent.OneTimeZEvent)
except: # if you can't register the class, tell someone.
loggerr(200, 'Failed to register ZEvent class.')
import sys, traceback, string
type, val, tb = sys.exc_info()
sys.stderr.write(string.join(
traceback.format_exception(type, val, tb), ''))
del type, val, tb
context.registerBaseClass(ZEvent.OneTimeZEvent)
----- Original Message -----
From: "Bak @ kedai" <kedai@kedai.com.my>
To: <zope@zope.org>
Sent: June 20, 2000 07:06 PM
Subject: [Zope] python product - newbie
> hi all,
> <Newbie alert blaring>
>
> i'm messing around with Boring product, and now wants to do more. i have
> problems when i got more than one class in a product. this is what i
wanted to
> do.
>
> create a guestbook (what else :)) product. GB.py with two classes - GB and
> GBitem. i can now load GB product, but can't add GBitem. what do i need
to do
> to get the 'Add' selection box?
>
> GB.py is available at http://203.106.2.206:8080/Tmp/GB
>
> help, pointers, docs appreciated
> thabks
>
> --
> ------------------------------------------------------
> http://www.kedai.com.my/kk
> Am I Evil?
>
>
> _______________________________________________
> 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 )
>