[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - configure.zcml:1.4

Jim Fulton jim@zope.com
Sat, 25 Jan 2003 08:22:21 -0500


Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv22686

Modified Files:
	configure.zcml 
Log Message:
Added security assertions to provide access to the response (as
request.response) and it's useful methods so that templates and
scripts can set headers and the response status code.

Changed a long absolute ref to a relative ref.



=== Zope3/src/zope/app/publisher/browser/configure.zcml 1.3 => 1.4 ===
--- Zope3/src/zope/app/publisher/browser/configure.zcml:1.3	Mon Dec 30 18:33:46 2002
+++ Zope3/src/zope/app/publisher/browser/configure.zcml	Sat Jan 25 08:22:19 2003
@@ -4,18 +4,31 @@
 >
 
 
-<serviceType id="BrowserMenu"
-             interface="zope.app.interfaces.publisher.browser.IBrowserMenuService" />
-<service serviceType="BrowserMenu"
-         permission="zope.Public"
-         component="zope.app.publisher.browser.globalbrowsermenuservice.globalBrowserMenuService" />
+<serviceType
+   id="BrowserMenu"
+   interface="zope.app.interfaces.publisher.browser.IBrowserMenuService" 
+   />
+
+<service
+   serviceType="BrowserMenu"
+   permission="zope.Public"
+   component=".globalbrowsermenuservice.globalBrowserMenuService"
+   />
 
 
 <content class="zope.publisher.browser.BrowserRequest">
   <allow
-      interface="zope.publisher.interfaces.browser.IBrowserApplicationRequest" />
+    interface="zope.publisher.interfaces.browser.IBrowserApplicationRequest"
+    attributes="response"
+    />
+  <allow
+    interface="zope.component.interfaces.IPresentationRequest" />
+</content>
+
+<content class="zope.publisher.browser.BrowserResponse">
   <allow
-      interface="zope.component.interfaces.IPresentationRequest" />
+    interface="zope.publisher.interfaces.http.IHTTPResponse"
+    />
 </content>
 
 <content class="zope.app.publisher.browser.fileresource.FileResource">