[Zope] Can't get "objectIds()" (and others) from XML-RPC
Phil Harris
phil.harris@zope.co.uk
Fri, 11 May 2001 11:45:12 +0100
----- Original Message -----
From: "Gilles Lenfant" <glenfant@bigfoot.com>
To: <zope@zope.org>
Sent: Friday, May 11, 2001 11:12 AM
Subject: [Zope] Can't get "objectIds()" (and others) from XML-RPC
<snip>
> "objectIds" method is not the only one that raises an exception.
> When using methods inherited from class "ObjectManagerItem", it works but
I
> got similar exception when using other methods inherited from class
> "ObjectManager". As mentioned in the API doc, a folder is supposed to be a
> subclass of "ObjectManagerItem" and "ObjectManager".
>
> Did I miss something ?
Yes, you did!
The objectIds are no longer callable via a URL, they can only be called from
DTML or Python (internal and external).
This means that you can't call it via XML-RPC.
Don't lose hope though, here's how to get around this limitation.
Create an Internal Python Script in the root of Zope, with these contents:
return context.objectItems()
This will return the list and all will be well.
You should though have some security on this method, otherwise *everybody*
will see the contents on your Zope instance.
>
> Thanks in advance for any hint.
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )