[Zope] Re: [Zope-dev] How to call the class in python file into zope script python.

Lennart Regebro lennart@regebro.nu
Tue, 25 Dec 2001 20:51:51 +0100


Hello!

Zope-dev is for the development of Zope, not the development with zope, so=
 I
send this to the Zope2zope.org list instead, where these questions should =
be
asked and answered!

>From: "=B9=DA =C0=E7=BC=BA" <bigarea@korea.com>
>There is the display() class  in the BBSExpert.py.
>I want to call this class (display() is located in the BBSExpert.py)

If you create a BBSExpert object in the root of the webserver you can just=

attach 'display' to the end of the URL:

http://localhost:8080/BBSExpert/display

If you want to call it from DTML you use <dtml-var "BBSExpert.display()">