[Zope] xmlrpc problems

Eduardo Bastos diabinhow2000@bol.com.br
Mon, 10 Mar 2003 10:38:25 -0300


Hello Matthias...

The method you use in zope needs a doc string.
Doc string is a small comment about the method.

like this:
def method():
    """ doc string """

[]s
Eduardo Bastos

----- Original Message -----
From: "Matthias H=F6rtzsch" <m_hoertzsch@yahoo.de>
To: <zope@zope.org>
Sent: Monday, March 10, 2003 10:17 AM
Subject: [Zope] xmlrpc problems


> Hi all,
>
> while trying something with xmlrpc and Amos examples
> (http://www.zope.org/Members/Amos/XML-RPC) I got while using the
objectIds -
> method an error: objectIds has an empty or missing docstring. Objects m=
ust
> have a docstring to be published
>
> If I use for example getId all works fine.
>
> looking into the sources told me that objectIds comment (and also from
many
> other methods) looks like:
>
> # Returns a list of subobject ids of the current object.
> # If 'spec' is specified, returns objects whose meta_type
> # matches 'spec'.
>
> So if I change it to:
> """Returns a list of subobject ids of the current object.
>         If 'spec' is specified, returns objects whose meta_type
>         matches 'spec'."""
>
> it works now and I get the results of the xmlrpc call.
>
> So is this maybe a 'comment' bug and a case for the collector or should
these
> methods no more used via xmlrpc?
>
> Greetings
>
> Matthias
>
>
> __________________________________________________________________
>
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
> Bis zu 100 MB Speicher bei http://premiummail.yahoo.de
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )