[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate - talesapi.py:1.10

Jim Fulton jim at zope.com
Sat Mar 6 12:49:23 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv21993/src/zope/app/pagetemplate

Modified Files:
	talesapi.py 
Log Message:
Changed most calls to queryAdapter to use interface calls instead.


=== Zope3/src/zope/app/pagetemplate/talesapi.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/pagetemplate/talesapi.py:1.9	Wed Mar  3 06:04:01 2004
+++ Zope3/src/zope/app/pagetemplate/talesapi.py	Sat Mar  6 12:48:51 2004
@@ -33,28 +33,28 @@
         self._engine = engine
 
     def title(self):
-        a = zapi.queryAdapter(self.context, IZopeDublinCore)
+        a = IZopeDublinCore(self.context, None)
         if a is None:
             raise AttributeError, 'title'
         return a.title
     title = property(title)
 
     def description(self):
-        a = zapi.queryAdapter(self.context, IZopeDublinCore)
+        a = IZopeDublinCore(self.context, None)
         if a is None:
             raise AttributeError, 'description'
         return a.description
     description = property(description)
 
     def created(self):
-        a = zapi.queryAdapter(self.context, IZopeDublinCore)
+        a = IZopeDublinCore(self.context, None)
         if a is None:
             raise AttributeError, 'created'
         return a.created
     created = property(created)
 
     def modified(self):
-        a = zapi.queryAdapter(self.context, IZopeDublinCore)
+        a = IZopeDublinCore(self.context, None)
         if a is None:
             raise AttributeError, 'modified'
         return a.modified
@@ -67,7 +67,7 @@
         return getattr(self, 'title', '') or zapi.name(self.context)
 
     def size(self):
-        a = zapi.queryAdapter(self.context, ISized)
+        a = ISized(self.context, None)
         if a is None:
             raise AttributeError, 'created'
         return a.sizeForDisplay()




More information about the Zope3-Checkins mailing list