[Zope] Zope 2.7: You are not allowed to access 'SESSION' in this context

Chris McDonough chrism@zope.com
29 Jul 2003 10:50:02 -0400


So you changed your templates' content types and it began to work?

On Tue, 2003-07-29 at 10:27, Alec Munro wrote:
> Yes, it worked under 2.5 for a couple of months now. Zope did not seem 
> to care at that point what content type my page templates were.
> But it does seem to work now, even if I don't particularily understand 
> it, so I'm not going to complain.
> Thanks for your interest.
> 
> Alec
> 
> Chris McDonough wrote:
> 
> >I presume it worked under 2.5? (Just trying to get a sense of when it
> >broke or if it ever worked...)
> >
> >On Tue, 2003-07-29 at 09:25, Alec Munro wrote:
> >  
> >
> >>I cannot. I'm in the process of upgrading from 2.5.
> >>What I have in my page template is a tal:define="sess request/SESSION", 
> >>which seems to be where the error is occurring.
> >>Hmm, and it seems that the problem was that my page template had 
> >>text/xml as a content type. That seems a bit odd to me, anyone want to 
> >>shed some light?
> >>
> >>Alec Munro
> >>Chris McDonough wrote:
> >>
> >>    
> >>
> >>>Can you confirm that this worked under 2.6.X?
> >>>
> >>>On Mon, 2003-07-28 at 14:16, Alec Munro wrote:
> >>> 
> >>>
> >>>      
> >>>
> >>>>I have a page template that is accessed via restrictedTraverse(), and 
> >>>>gives me an Unauthorized error when I try to access request/SESSION.
> >>>>It  doesn't seem to be directly related to restrictedTraverse(), because 
> >>>>I switched it for unrestrictedTraverse() and had the same problem.
> >>>>Thanks,
> >>>>
> >>>>Alec Munro
> >>>>
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>Zope maillist  -  Zope@zope.org
> >>>>http://mail.zope.org/mailman/listinfo/zope
> >>>>**   No cross posts or HTML encoding!  **
> >>>>(Related lists - 
> >>>>http://mail.zope.org/mailman/listinfo/zope-announce
> >>>>http://mail.zope.org/mailman/listinfo/zope-dev )
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>
> >>
> >>_______________________________________________
> >>Zope maillist  -  Zope@zope.org
> >>http://mail.zope.org/mailman/listinfo/zope
> >>**   No cross posts or HTML encoding!  **
> >>(Related lists - 
> >> http://mail.zope.org/mailman/listinfo/zope-announce
> >> http://mail.zope.org/mailman/listinfo/zope-dev )
> >>    
> >>
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
-- 
Chris McDonough <chrism@zope.com>
Zope Corporation