Re: [Zope-dev] is an object in a folder

2004-08-25 Thread Christian Theune
Am Di, den 24.08.2004 schrieb Florent Guillaume um 17:48: > > from Acquisition import aq_base > > ... > > def hasObject(self, id): > > """Test if an object is in the current object. > > """ > > if hasattr(aq_base(self), id): > > return 1 > > return 0

Re: [Zope-dev] Preventing scripts from being called directly

2004-08-25 Thread Dario Lopez-Kästen
Florent Guillaume wrote: The way I do it is: ##parameters=foo, bar, ..., REQUEST=None if REQUEST is not None: raise 'Unauthorized', 'Not callable TTW' I believe this is much better. I get "function not accessible in restricted mode" with my own solution. Thanks, /dario -- -- -

[Zope-dev] how to start workflow instance on another zope serverwith SOAP?

2004-08-25 Thread Aruna Kathiriya
Hi, I am very new to open source. I am trying to start an instance of a workflow on a Zope server from another Zope server. I did successfully with XML-RPC call but I need to do it with SOAP. I am note sure weather I can do it or not. I am running two Zope servers on my local m/c on 2 different

Re: [Zope-dev] closed collector issues 1252 and 1308

2004-08-25 Thread Paul Winkler
On Wed, Aug 25, 2004 at 01:52:26PM +0100, Chris Withers wrote: > Paul Winkler wrote: > >absolute_url > > > > - containment only, does not include contextual elements from the > > client's URL, that's the whole point of this method :-) > > What do you mean by "contextual elements from the client

Re: [Zope-dev] closed collector issues 1252 and 1308

2004-08-25 Thread Chris Withers
Paul Winkler wrote: absolute_url - containment only, does not include contextual elements from the client's URL, that's the whole point of this method :-) What do you mean by "contextual elements from the client's URL" absolute_url(relative=1) - same as absolute_url, and not usable in some