[Zope] HELP: External methods as methods of objects...
Steve Alexander
steve@cat-box.net
Thu, 11 May 2000 08:06:57 +0100
"M. Papillon" wrote:
>
> However, as far as I can tell this only works for files and folders; if I
> try it on a DTML Document I get a missing docstring error.
There's your key.
You need to add a Python docstring. For example:
def methodFoo():
""" This is mthodFoo's docstring"""
# rest of methodFoo
pass
This is part of Zope's permissions system -- python methods can't be
called on objects unless they have a docstring, and don't begin with an
underscore.
This is documented somewhere (promise!), but I can't remember where :-/
--
Steve Alexander
Software Engineer
Cat-Box limited