[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser -
viewmeta.py:1.44
Garrett Smith
garrett at mojave-corp.com
Thu Apr 8 11:34:34 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv19674/src/zope/app/publisher/browser
Modified Files:
viewmeta.py
Log Message:
Added support for traversing pages on views without specifying '@@'.
Prior to this change, a page named 'foo.html' for a view (that was not
declared inside the 'view' element) would have to be traversed using
'view/@@foo.html'. Now it can also be traversed using the name directly,
as in 'view/foo.html'.
For additional clarification, refer to the test.
=== Zope3/src/zope/app/publisher/browser/viewmeta.py 1.43 => 1.44 ===
--- Zope3/src/zope/app/publisher/browser/viewmeta.py:1.43 Tue Mar 23 17:08:09 2004
+++ Zope3/src/zope/app/publisher/browser/viewmeta.py Thu Apr 8 11:34:02 2004
@@ -304,6 +304,9 @@
if name in pages:
return getattr(self, pages[name])
+ view = zapi.queryView(self, name, request)
+ if view is not None:
+ return view
raise NotFoundError(self, name, request)
More information about the Zope3-Checkins
mailing list