Commit 0b8bf657 authored by 's avatar

Added fix to Result class in Results.py - it was running afoul of the

new tighter security policy because it did not contain the needed
assertion to allow access to its unprotected subobjects (records).
parent dc4acff6
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Generic Database adapter __doc__='''Generic Database adapter
$Id: DA.py,v 1.84 2000/05/16 19:34:45 brian Exp $''' $Id: DA.py,v 1.85 2000/05/23 18:57:12 brian Exp $'''
__version__='$Revision: 1.84 $'[11:-2] __version__='$Revision: 1.85 $'[11:-2]
import OFS.SimpleItem, Aqueduct, RDB import OFS.SimpleItem, Aqueduct, RDB
import DocumentTemplate, marshal, md5, base64, Acquisition, os import DocumentTemplate, marshal, md5, base64, Acquisition, os
...@@ -129,6 +129,7 @@ class SQL(cDocument, nvSQL): ...@@ -129,6 +129,7 @@ class SQL(cDocument, nvSQL):
pass pass
class DA( class DA(
Aqueduct.BaseQuery,Acquisition.Implicit, Aqueduct.BaseQuery,Acquisition.Implicit,
Globals.Persistent, Globals.Persistent,
......
...@@ -99,6 +99,10 @@ class Results: ...@@ -99,6 +99,10 @@ class Results:
""" """
_index=None _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,(items,data),brains=NoBrains, parent=None, def __init__(self,(items,data),brains=NoBrains, parent=None,
zbrains=None): zbrains=None):
......
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