[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser - BrowserRequest.py:1.10

Marius Gedminas mgedmin@delfi.lt
Tue, 25 Jun 2002 07:27:10 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv2062/lib/python/Zope/Publisher/Browser

Modified Files:
	BrowserRequest.py 
Log Message:
Removed two instances of __allow_access_to_unprotected_subobjects__


=== Zope3/lib/python/Zope/Publisher/Browser/BrowserRequest.py 1.9 => 1.10 ===
     '''
 
-    # Allow access to attributes such as headers and filename so
-    # that ZClass authors can use DTML to work with FileUploads.
-    __allow_access_to_unprotected_subobjects__=1
-
     def __init__(self, aFieldStorage):
 
         file=aFieldStorage.file
@@ -542,11 +538,6 @@
 
         self.headers=aFieldStorage.headers
         self.filename=aFieldStorage.filename
-
-        # Add an assertion to the rfc822.Message object that implements
-        # self.headers so that managed code can access them.
-        try:    self.headers.__allow_access_to_unprotected_subobjects__ = 1
-        except: pass
 
 class RedirectingBrowserRequest(BrowserRequest):
     """Browser requests that redirect when the actual and effective URLs differ