[Zope3-checkins] CVS: Zope3/src/zope/app/externaleditor/browser -
__init__.py:1.4
Nathan Yergler
nathan at yergler.net
Sat Mar 20 17:10:06 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/externaleditor/browser
In directory cvs.zope.org:/tmp/cvs-serv8451/src/zope/app/externaleditor/browser
Modified Files:
__init__.py
Log Message:
Updated to use generic queryType instead of queryContentType.
=== Zope3/src/zope/app/externaleditor/browser/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/externaleditor/browser/__init__.py:1.3 Mon Mar 15 08:10:48 2004
+++ Zope3/src/zope/app/externaleditor/browser/__init__.py Sat Mar 20 17:10:05 2004
@@ -16,7 +16,8 @@
from zope.app import zapi
from zope.app.publisher.browser import BrowserView
from zope.app.filerepresentation.interfaces import IReadFile, IWriteFile
-from zope.app.content import queryContentType
+from zope.app.interface import queryType
+from zope.app.content.interfaces import IContentType
from zope.security.proxy import trustedRemoveSecurityProxy
class ExternalEditor(BrowserView):
@@ -42,7 +43,7 @@
# using IContentType, which is a marker interface
# XXX Had to use trustedRemoveSecurityProxy because
# I was getting I was getting unauthorized on __iro__
- meta_type = queryContentType(trustedRemoveSecurityProxy(context))
+ meta_type = queryType(trustedRemoveSecurityProxy(context), IContentType)
if meta_type:
r.append('meta_type:%s' % meta_type.__name__)
More information about the Zope3-Checkins
mailing list