[Zope] ODBC in 2.2

Andy McKay AndyM@ActiveState.com
Thu, 20 Jul 2000 16:06:15 -0700


In case anyone else didnt read my thread there is an apparently known but
not seemingly well documented problem with ODBC in Zope 2.2. The solution is
here:

<!--StartFragment-->Index: RDB.py
===================================================================
RCS file: /cvs-repository/Zope2/lib/python/Shared/DC/ZRDB/RDB.py,v
retrieving revision 1.24.32.1
retrieving revision 1.24.32.2
diff -c -r1.24.32.1 -r1.24.32.2
*** RDB.py	2000/07/12 17:38:03	1.24.32.1
--- RDB.py	2000/07/17 15:03:55	1.24.32.2
***************
*** 85,92 ****
  __doc__='''Class for reading RDB files


! $Id: RDB.py,v 1.24.32.1 2000/07/12 17:38:03 brian Exp $'''
! __version__='$Revision: 1.24.32.1 $'[11:-2]

  import regex, regsub
  from string import split, strip, lower, upper, atof, atoi, atol, find,
join
--- 85,92 ----
  __doc__='''Class for reading RDB files


! $Id: RDB.py,v 1.24.32.2 2000/07/17 15:03:55 brian Exp $'''
! __version__='$Revision: 1.24.32.2 $'[11:-2]

  import regex, regsub
  from string import split, strip, lower, upper, atof, atoi, atol, find,
join
***************
*** 123,128 ****
--- 123,132 ----
      """Class for reading RDB files
      """
      _index=None
+
+     # We need to allow access to not-explicitly-protected
+     # individual record objects contained in the result.
+     __allow_access_to_unprotected_subobjects__=1

      def __init__(self,file,brains=NoBrains, parent=None, zbrains=None):


--
     Andy McKay, Developer, ActiveState
     http://www.ActiveState.com
     Programming for the People