[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/browser -
configure.zcml:1.3
Garrett Smith
garrett at mojave-corp.com
Fri Apr 9 10:21:05 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/traversing/browser
In directory cvs.zope.org:/tmp/cvs-serv11639/src/zope/app/traversing/browser
Modified Files:
configure.zcml
Log Message:
Added support for looking up an abolute URL by requesting a view that
provides IAbsoluteURL.
Note that the view itself still recrusively looks up absolute URLs using
the view name 'absolute_url'.
=== Zope3/src/zope/app/traversing/browser/configure.zcml 1.2 => 1.3 ===
--- Zope3/src/zope/app/traversing/browser/configure.zcml:1.2 Wed Mar 17 13:24:27 2004
+++ Zope3/src/zope/app/traversing/browser/configure.zcml Fri Apr 9 10:21:04 2004
@@ -34,6 +34,14 @@
permission="zope.Public"
allowed_interface=".interfaces.IAbsoluteURL"
/>
+
+ <view
+ for="*"
+ factory=".AbsoluteURL"
+ type="zope.publisher.interfaces.http.IHTTPRequest"
+ permission="zope.Public"
+ provides=".interfaces.IAbsoluteURL"
+ />
<view
for="zope.app.traversing.interfaces.IContainmentRoot"
@@ -42,6 +50,14 @@
type="zope.publisher.interfaces.http.IHTTPRequest"
permission="zope.Public"
allowed_interface=".interfaces.IAbsoluteURL"
+ />
+
+ <view
+ for="zope.app.traversing.interfaces.IContainmentRoot"
+ factory=".SiteAbsoluteURL"
+ type="zope.publisher.interfaces.http.IHTTPRequest"
+ permission="zope.Public"
+ provides=".interfaces.IAbsoluteURL"
/>
<browser:page
More information about the Zope3-Checkins
mailing list