[Zope] Accessing methods with the debugger

Michel Pelletier michel@digicool.com
Mon, 13 Mar 2000 11:06:09 -0800


Oscar Picasso wrote:
> 
> Hi,
> 
> I have the following python Class in MyTest module:
> 
> import DocumentTemplate
> 
> class Test:
>         index_html = DocumentTemplate.HTMLFile('test_form.dtml')
> 
>         def __init__(self):
>                 ...
> 
>         ...
> 
>         def mymethod(self):
>                 return 'Hello'
> 
> In my DoTest.py module i have:
> import MyTest
> t=MyTest.Test()
> 
> If I run:
> 
> python /usr/local/zope/lib/python/ZPublisher/Test.py DoTest t
> 
> i get the correct output (a html file with http header).
> 
> but if I try:
> 
> python /usr/local/zope/lib/python/ZPublisher/Test.py DoTest t/mythod

Your method does not have a doc string.  ZPublisher will not call a
method unless it has a doc string.

-Michel