[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate - talesapi.py:1.3
Jim Fulton
jim@zope.com
Tue, 27 May 2003 08:57:48 -0400
Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv7830/src/zope/app/pagetemplate
Modified Files:
talesapi.py
Log Message:
Changed the meta-data api functions to use IZopeDublinCore.
=== Zope3/src/zope/app/pagetemplate/talesapi.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/pagetemplate/talesapi.py:1.2 Fri May 23 18:18:38 2003
+++ Zope3/src/zope/app/pagetemplate/talesapi.py Tue May 27 08:57:17 2003
@@ -19,6 +19,7 @@
from zope.app.interfaces.talesapi import IZopeTalesAPI
from zope.app.interfaces.dublincore import IDCDescriptiveProperties, IDCTimes
+from zope.app.interfaces.dublincore import IZopeDublinCore
from zope.app.interfaces.size import ISized
from zope.app import zapi
@@ -30,28 +31,28 @@
self.context = context
def title(self):
- a = zapi.queryAdapter(self.context, IDCDescriptiveProperties)
+ a = zapi.queryAdapter(self.context, IZopeDublinCore)
if a is None:
raise AttributeError, 'title'
return a.title
title = property(title)
def description(self):
- a = zapi.queryAdapter(self.context, IDCDescriptiveProperties)
+ a = zapi.queryAdapter(self.context, IZopeDublinCore)
if a is None:
raise AttributeError, 'description'
return a.description
description = property(description)
def created(self):
- a = zapi.queryAdapter(self.context, IDCTimes)
+ a = zapi.queryAdapter(self.context, IZopeDublinCore)
if a is None:
raise AttributeError, 'created'
return a.created
created = property(created)
def modified(self):
- a = zapi.queryAdapter(self.context, IDCTimes)
+ a = zapi.queryAdapter(self.context, IZopeDublinCore)
if a is None:
raise AttributeError, 'modified'
return a.modified