[Zope3-checkins] CVS: Zope3/src/zope/component - __init__.py:1.21
Garrett Smith
garrett at mojave-corp.com
Fri Mar 5 21:50:19 EST 2004
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv1044/src/zope/component
Modified Files:
__init__.py
Log Message:
Added functions for getting/querying views that provide a particular
interface.
=== Zope3/src/zope/component/__init__.py 1.20 => 1.21 ===
--- Zope3/src/zope/component/__init__.py:1.20 Fri Mar 5 19:38:47 2004
+++ Zope3/src/zope/component/__init__.py Fri Mar 5 21:50:18 2004
@@ -199,6 +199,13 @@
queryView = hookable(queryView)
+def getViewProviding(object, providing, request, context=None):
+ return getView(object, '', request, context, providing)
+
+def queryViewProviding(object, providing, request, default=None,
+ context=None):
+ return queryView(object, '', request, default, context, providing)
+
def getDefaultViewName(object, request, context=None):
v = queryDefaultViewName(object, request, context=context)
if v is not None:
More information about the Zope3-Checkins
mailing list