Re: [Zope] proxy role for an external method

2005-10-11 Thread Chris Withers
Reinoud van Leeuwen wrote: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in self.portal_catalog(portal_type='User', SearchableText=SearchableText):

[Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
Hi, I have a working pyhton script in the ZODB that searches for members and is called by a xmlrpc client. Security is only needed based on source IP address, so Anonymous can execute it, but the script has an Authenticated proxy role. I would like to convert this script to an Exteral Method

Re: [Zope] proxy role for an external method

2005-10-10 Thread Jens Vagelpohl
On 10 Oct 2005, at 16:49, Reinoud van Leeuwen wrote: I would like to convert this script to an Exteral Method in $INSTANCE_HOME/Extensions. This basically works, but I cannot see any way to specify the proxy role. And when it is not specified the script obviously does not work. Have you

Re: [Zope] proxy role for an external method

2005-10-10 Thread Andreas Jung
--On 10. Oktober 2005 17:49:20 +0200 Reinoud van Leeuwen [EMAIL PROTECTED] wrote: I would like to convert this script to an Exteral Method in $INSTANCE_HOME/Extensions. This basically works, but I cannot see any way to specify the proxy role. And when it is not specified the script

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Mon, Oct 10, 2005 at 05:06:22PM +0100, Jens Vagelpohl wrote: On 10 Oct 2005, at 16:49, Reinoud van Leeuwen wrote: I would like to convert this script to an Exteral Method in $INSTANCE_HOME/Extensions. This basically works, but I cannot see any way to specify the proxy role. And when it

Re: [Zope] proxy role for an external method

2005-10-10 Thread Andreas Jung
Are you using CMF/Plone? -aj --On 10. Oktober 2005 19:18:00 +0200 Reinoud van Leeuwen [EMAIL PROTECTED] wrote: On Mon, Oct 10, 2005 at 05:06:22PM +0100, Jens Vagelpohl wrote: On 10 Oct 2005, at 16:49, Reinoud van Leeuwen wrote: I would like to convert this script to an Exteral Method in

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in self.portal_catalog(portal_type='User', SearchableText=SearchableText): user = brain.getObject()

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Tue, Oct 11, 2005 at 03:42:44AM +1000, Alan Milligan wrote: yes. I I run the script from the ZMI logged in as admin it finds members, but if I try it from an XMLRPC client it does not You're sure you haven't got an access control problem and that your xml-rpc client is not running up

Re: [Zope] proxy role for an external method

2005-10-10 Thread Andreas Jung
--On 10. Oktober 2005 20:00:23 +0200 Reinoud van Leeuwen [EMAIL PROTECTED] wrote: But really searching for something through xmlrpc does not work. If I copy paste the code in an (ZODB) Python script which I give the Authenticated proxy role it works perfect. Nonsense. Your problem has

Re: [Zope] proxy role for an external method

2005-10-10 Thread Peter Bengtsson
2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in self.portal_catalog(portal_type='User',

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Mon, Oct 10, 2005 at 10:57:25PM +0100, Peter Bengtsson wrote: 2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in

Re: [Zope] proxy role for an external method

2005-10-10 Thread Peter Bengtsson
2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 10:57:25PM +0100, Peter Bengtsson wrote: 2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the

Re: [Zope] proxy role for an external method

2005-10-10 Thread Jens Vagelpohl
On 10 Oct 2005, at 23:14, Peter Bengtsson wrote: I understood that Plone does some extra magic, so I have to setup a securoty context... I'll post it here if I have a working solution Shouldn't really be the problem. Isn't portal_catalog just another ZCatalog that has nothing to do with