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 ----
+     __allow_access_to_unprotected_subobjects__ = 1
      caching = 0
      def __init__(self, parentSession, sessionName, mode='base64'):


Jeff K. Hoffman                               704.849.0731 x108
Chief Technology Officer                      mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C.                         http://www.goingv.com/

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to