[Zope-dev] Removing the acquisition wrapper from an object (Python script)
Gilles Lenfant
gilles@pilotsystems.net
Thu, 1 Aug 2002 15:44:46 +0200
----- Original Message -----=20
From: "Toby Dickenson" <tdickenson@geminidataloggers.com>
To: "Gilles Lenfant" <gilles@pilotsystems.net>; <zope-dev@zope.org>
Sent: Thursday, August 01, 2002 1:46 PM
Subject: Re: [Zope-dev] Removing the acquisition wrapper from an object =
(Python script)
On Thursday 01 Aug 2002 12:49 pm, Gilles Lenfant wrote:
>> Hi,
>>
>> aq_base(someObject) doesn't work in a python script. I need to get an
>> object without its acquisition wrapper.
>
> It cant be done in untrusted code, because it would let you strip away =
its=20
> security settings.
> You could write an external method, or similar trusted code.
Thanks Toby
I can't understand that reason because it's also easy to strip away an =
object's security settings in an untrusted python script that has a =
Manager proxy.
Well, I'm gonna make my 2 or 3 lines External method :(
Cheers
--Gilles