[Zope] Patch for SQLSession / Zope 2.2a

Jeff K. Hoffman jeff.hoffman@goingv.com
Thu, 25 May 2000 16:20:20 -0400 (EDT)


Hello,

I am using SQLSession with Zope 2.2a, and ran into some bad juju with
ZopeSecurityPolicy. Trying to access any of the methods on SESSION
(has_key, clear, etc.) would fail with an Unauthorized exception.

Following Brian Lloyd's lead, I've made the following patch to
SQLSession.py. It seems to have fixed the problem, though I don't have the
time to figure out if it's the "right" way to do it or not. Perhaps
someone in the know can comment.


*** SQLSession.py       Sun Nov 21 20:38:18 1999
--- SQLSession.py.new   Thu May 25 16:10:29 2000
***************
*** 75,80 ****
--- 75,82 ----
        REQUEST.SESSION (like REQUEST.RESPONSE)
      """
  
+     __allow_access_to_unprotected_subobjects__ = 1
+ 
      caching = 0
  
      def __init__(self, parentSession, sessionName, mode='base64'):


--Jeff

---
Jeff K. Hoffman                               704.849.0731 x108
Chief Technology Officer                      mailto:jeff.hoffman@goingv.com
Going Virtual, L.L.C.                         http://www.goingv.com/