[Zope] ZPublisher guestbook.py
Luciano Ramalho
luciano@magnet.com.br
Mon, 15 Feb 1999 18:21:30 -0300
I got stuck implementing the examples in "A Technical Introduction to
Object Publishing with Zope"
<http://www.zope.org/Documentation/Reference/ObjectPublishingIntro> with
the stand-alone ZPublisher.
In the "guestbook.py" example, what should be the URL invoked to show the
form? The module is called guestbook.py, the class is GuestBook and the
method is defined as "def guestbookForm(self)".
I've been succesful installing and runnig the previous examples but in this
case I don't know what should be the first URL called to run the Guestobook
application.
If I type:
<http://localhost/cgi-bin/GuestBook.zcgi/GuestBook>
I get this:
--
GuestBook.GuestBook
--
(The Guesbook __repr__?)
If I type:
<http://localhost/cgi-bin/GuestBook.zcgi/GuestBook/guestbookForm>
I get:
--
Sorry, an error occurred.
Traceback (innermost last):
File C:\Zope\lib\python\ZPublisher\Publish.py, line 879, in publish_module
File C:\Zope\lib\python\ZPublisher\Publish.py, line 595, in publish
(Info: /GuestBook/guestbookForm)
TypeError: unbound method must be called with class instance 1st argument
--
Thanks for any help.
[]s
Luciano Ramalho
--
MAGNET <http://magnet.com.br>
Tecnologia em língua de gente.