[Zope] Add python class to Zope.
Pattreeya Tanisaro
pattreeya@lightwerk.com
Fri, 9 Mar 2001 17:02:18 +0100
Hello Dieter,
how can I create the instance "gb" that inherit the Guestbook 's property
from Guestbook class in Zope? I know how to do it in python but I don't know
how to do so in Zope.
Thank you in advance.
pattreeya.
> >
> > class Guestbook:
> > def __init__
> > ....
> > def signGuestBook
> > ....
> > def feedBack.
> > ..
> > How can I call the function "feedBack" to Zope?
>
> Read the paper on Zope Security.
> Otherwise, you will not be lucky.
>
> You would not call the function directly from Zope,
> but as a method of an instance "gb" of "Guestbook".
> Once you have such an instance, you would
> use
>
> <dtml-with gb>
> <dtml-var feedback>
> </dtml-with>
>
> Note that function definitions in Python have parameter
> declaration.
>
> It's probably advicable to look into a Python book or its
> online documentation, too.
> ... before you start your project.
>
>
> Probably, you should also read the Zope book...
>
>
> Dieter