Re: [Zope-dev] More on [Removal of aq_acquire from guarded_getattr]

2005-02-06 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 25 Jan 2005 10:30 am, Stefan H. Holek wrote: - declaring object security on the acquiree via declareObjectProtected(foo) For me, the problem arises when the acquiree is a Python builtin object - a string instance attribute in my case.

Re: [Zope-dev] More on [Removal of aq_acquire from guarded_getattr]

2005-02-06 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 7 Feb 2005 05:26 pm, Richard Jones wrote: That is, there's no acquisition context on the simple string. To fix the problem, I changed secure_url to be a ComputedAttribute which looked up the instance attribute _secure_url. This then gave

[Zope-dev] More on [Removal of aq_acquire from guarded_getattr]

2005-01-24 Thread Stefan H. Holek
The failing AccessControl tests can now be found on shh-aqtests-branch in zope.org CVS. Observations: a) guarded_getattr checks object security of the acquiree if the container denies access (at least that's my assessment). b) The tests pass when either - running Zope 2.7.3, or -