Commit 542f7951 authored by Jim Fulton's avatar Jim Fulton

Now pass self to RDB.File so record constructors can acquire.

parent 20ffea9f
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''Generic Database adapter __doc__='''Generic Database adapter
$Id: DA.py,v 1.22 1998/01/12 20:02:23 jim Exp $''' $Id: DA.py,v 1.23 1998/01/16 21:33:48 jim Exp $'''
__version__='$Revision: 1.22 $'[11:-2] __version__='$Revision: 1.23 $'[11:-2]
import OFS.SimpleItem, Aqueduct.Aqueduct, Aqueduct.RDB import OFS.SimpleItem, Aqueduct.Aqueduct, Aqueduct.RDB
import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os
...@@ -196,7 +196,7 @@ class DA( ...@@ -196,7 +196,7 @@ class DA(
if hasattr(self, '_v_brain'): brain=self._v_brain if hasattr(self, '_v_brain'): brain=self._v_brain
else: brain=getBrain(self) else: brain=getBrain(self)
result=Aqueduct.RDB.File(StringIO(result),brain) result=Aqueduct.RDB.File(StringIO(result),brain,self)
columns=result._searchable_result_columns() columns=result._searchable_result_columns()
if columns != self._col: self._col=columns if columns != self._col: self._col=columns
return result return result
...@@ -339,6 +339,9 @@ def getBrain(self, ...@@ -339,6 +339,9 @@ def getBrain(self,
############################################################################## ##############################################################################
# #
# $Log: DA.py,v $ # $Log: DA.py,v $
# Revision 1.23 1998/01/16 21:33:48 jim
# Now pass self to RDB.File so record constructors can acquire.
#
# Revision 1.22 1998/01/12 20:02:23 jim # Revision 1.22 1998/01/12 20:02:23 jim
# Added support for keyword arguments to methods. # Added support for keyword arguments to methods.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment