[Zope] Python: Class and method and documentation

Mickael Remond mikl@linux-france.org
16 May 2000 01:04:05 +0200


After a lot test, I think I found something strange in Zope (Or maybe it is
too late in the morning...):

I built a Python class to be used in a pure Python product. I wanted to add
method but add a lot of trouble. Some of them was working and some of them
kept going the "Ressource not found" Message.

The answer is that it seems that you MUST document your method so that it can
be properly manage by Zope:

 For exemple the method:

    def test(self):
        return "test"

 does not work, but:

    def test(self):
        """This is a test method"""
        return "test"

 does seem to work.

 I need help. Could you confirm and explain me this _cryptic_ behaviour... 


-- 
Mickaël