Skip to content

Commit

Permalink
Make SimpleComponentTraverser the default traverser for
Browse files Browse the repository at this point in the history
all objects, not just those that implement something.  This was an
attempt to fix a collector item, but it turned out to have nothing to
do with it.  This is a big enough change that I don't want to
introduce it until X3.0 final is out.
We'll stick this off on this branch for now.
  • Loading branch information
Jim Fulton committed Aug 10, 2004
0 parents commit 5dec6e0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<configure xmlns='http://namespaces.zope.org/zope'
xmlns:tales='http://namespaces.zope.org/tales'>

<content class=".viewpagetemplatefile.BoundPageTemplate">
<allow attributes="__call__ __str__ __name__" />
</content>

<adapter
for="*"
provides=".interfaces.IZopeTalesAPI"
factory=".talesapi.ZopeTalesAPI"
/>

<adapter
for="*"
provides="zope.app.traversing.interfaces.IPathAdapter"
factory=".talesapi.ZopeTalesAPI"
name="zope"
/>

<adapter
for="*"
provides="zope.app.traversing.interfaces.IPathAdapter"
factory=".urlquote.URLQuote"
name="url"/>

<content class="zope.tales.tales.Iterator">
<allow interface="zope.tales.interfaces.ITALESIterator" />
</content>

<view
for=".viewpagetemplatefile.BoundPageTemplate"
type="zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.publisher.interfaces.browser.IBrowserPublisher"
factory="zope.app.publication.traversers.MethodTraverser"
permission="zope.Public"
>
Provide a traverser adapter for BoundPageTemplate objects that
marks them as having no default page. This is necessary to
actually publish them.
</view>

</configure>

0 comments on commit 5dec6e0

Please sign in to comment.