[Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Chris Withers
Sidnei da Silva wrote: | | 2. Is the above behaviour pluggable at all? | | Not at all. | | Should it be? Can it be without impacting on performance? I don't think so. I would expect there's only one sane way to do it. I'm not sure I agree, I've read lots of different views on this sort of

Re: [Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Lennart Regebro
On 4/21/05, Chris Withers [EMAIL PROTECTED] wrote: Aha, as does PAS I see. Does this mean RESPONSE.unauthorized should be a responsibility of the user folder? I think it should be, yes. Or, actually the responsibility of the user object. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS

Re: [Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Chris Withers
Lennart Regebro wrote: On 4/21/05, Chris Withers [EMAIL PROTECTED] wrote: Aha, as does PAS I see. Does this mean RESPONSE.unauthorized should be a responsibility of the user folder? I think it should be, yes. Or, actually the responsibility of the user object. Why the difference? cheers, Chris --

[Zope-dev] RAMcache and container vs. context

2005-04-21 Thread Paul Winkler
I never noticed this before today, but apparently RAMCacheManager is sensitive to whether cached items are acquired from the context or from the container. (Zope 2.7.3 but afaict it should behave the same in any recent version). Is that intended behavior or is this a bug? Let's say I have a CMF

Re: [Zope-dev] RAMcache and container vs. context

2005-04-21 Thread Stefan H. Holek
This is due to how Python Scripts compute their cache keys. The relevant snippet from PythonScript._exec() is: asgns = self.getBindingAssignments() name_context = asgns.getAssignedName('name_context', None) if name_context: keyset[name_context]

Re: [Zope-dev] RAMcache and container vs. context

2005-04-21 Thread Paul Winkler
On Fri, Apr 22, 2005 at 12:27:18AM +0200, Stefan H. Holek wrote: This is due to how Python Scripts compute their cache keys. The relevant snippet from PythonScript._exec() is: asgns = self.getBindingAssignments() name_context = asgns.getAssignedName('name_context',