XML-RPC , can not use objectIds trough the web
Hi Zopistas, I am trying to access Zope trough xml-rpc as described by Amos in http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=1 (and as found in other examples) This examples assume that you can access the content of a folder trough the web by visiting something like http://localhost:8080/objectIds however this results in following error: The object at http://localhost:8080/objectIds has an empty or missing docstring. Objects must have a docstring to be published. is there a way to circumvent that? thanks for your tips Robert www.redcor.ch
Hey Robert. You can either go into the source, and add the docstring def objectIds() """ anything """ or you can create a new method to wrap the objectIds method. I posted about this last month, commenting that this how-to is misleading. Apparently its hasn't been changed yet. -ed-
I am trying to access Zope trough xml-rpc as described by Amos in http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=1 (and as found in other examples) This examples assume that you can access the content of a folder trough the web by visiting something like http://localhost:8080/objectIds however this results in following error: The object at http://localhost:8080/objectIds has an empty or missing docstring. Objects must have a docstring to be published.
is there a way to circumvent that? thanks for your tips
Hallo Ed, tanks for your answer. Id did that. However it did not help. Do you remember what files you updated ?? I am using zope 2.4.4b1 Robert ----- Original Message ----- From: "Ed Colmar" <ed@greengraphics.net> To: "Robert Rottermann" <robert@redcor.ch>; <zope@zope.org> Sent: Monday, April 01, 2002 11:23 PM Subject: Re: [Zope] XML-RPC , can not use objectIds trough the web
Hey Robert.
You can either go into the source, and add the docstring
def objectIds() """ anything """
or you can create a new method to wrap the objectIds method.
I posted about this last month, commenting that this how-to is misleading. Apparently its hasn't been changed yet.
-ed-
I am trying to access Zope trough xml-rpc as described by Amos in http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=1 (and as found in other examples) This examples assume that you can access the content of a folder trough the web by visiting something like http://localhost:8080/objectIds however this results in following error: The object at http://localhost:8080/objectIds has an empty or missing docstring. Objects must have a docstring to be published.
is there a way to circumvent that? thanks for your tips
Robert Rottermann wrote:
Hi Zopistas,
I am trying to access Zope trough xml-rpc as described by Amos in http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=1 (and as found in other examples) This examples assume that you can access the content of a folder trough the web by visiting something like http://localhost:8080/objectIds however this results in following error: The object at http://localhost:8080/objectIds has an empty or missing docstring. Objects must have a docstring to be published.
is there a way to circumvent that? thanks for your tips
Changing the source of zope works. Give this function a docstring. By the way, I changed this example from Amos Latteier a bit. You can get it from http://guettli.sourceforge.net/zopeclient/ thomas
On Wed, 2002-04-03 at 10:29, Thomas Guettler wrote:
Robert Rottermann wrote:
Hi Zopistas,
I am trying to access Zope trough xml-rpc as described by Amos in http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=1 (and as found in other examples) This examples assume that you can access the content of a folder trough the web by visiting something like http://localhost:8080/objectIds however this results in following error: The object at http://localhost:8080/objectIds has an empty or missing docstring. Objects must have a docstring to be published.
is there a way to circumvent that? thanks for your tips
Changing the source of zope works. Give this function a docstring.
How? Where? Is this documented somewhere so a relatively dense person (such as myself) could do it? -- Mitch Pirtle Corporate Security Officer Kühne & Nagel Management AG Tel: +41 1 786 96 45 Fax: +41 1 786 95 95
Mitch Pirtle wrote:
On Wed, 2002-04-03 at 10:29, Thomas Guettler wrote:
Robert Rottermann wrote:
Hi Zopistas,
I am trying to access Zope trough xml-rpc as described by Amos in http://www.xml.com/pub/a/2000/01/xmlrpc/index.html?page=1 (and as found in other examples) This examples assume that you can access the content of a folder trough the web by visiting something like http://localhost:8080/objectIds however this results in following error: The object at http://localhost:8080/objectIds has an empty or missing docstring. Objects must have a docstring to be published.
is there a way to circumvent that? thanks for your tips
Changing the source of zope works. Give this function a docstring.
How? Where? Is this documented somewhere so a relatively dense person (such as myself) could do it?
Here is how I did it: cd $YOUR_ZOPE_HOME/python; grep -rsi "def objectids" * ... OFS/ObjectManager.py: def objectIds(self, spec=None): ... --> change ObejctManager.py def objectIds(...): "foo docstring" If you are on windows and don't know grep. Google for cygwin. thomas
participants (4)
-
Ed Colmar -
Mitch Pirtle -
Robert Rottermann -
Thomas Guettler