Hi all, I got some minor enhancements to the zope tales API. Maybe someone can check this into the repos, if it's of public interest.
kind regards, sven Index: /data/mnemonic/Workspace/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/pagetemplate/talesapi.py =================================================================== --- /data/mnemonic/Workspace/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/pagetemplate/talesapi.py (revision 177) +++ /data/mnemonic/Workspace/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/pagetemplate/talesapi.py (working copy) @@ -51,6 +51,34 @@ return a.description description = property(description) + def subjects(self): + a = IZopeDublinCore(self.context, None) + if a is None: + raise AttributeError('subjects') + return a.subjects + subjects = property(subjects) + + def creators(self): + a = IZopeDublinCore(self.context, None) + if a is None: + raise AttributeError('creators') + return a.creators + creators = property(creators) + + def contributors(self): + a = IZopeDublinCore(self.context, None) + if a is None: + raise AttributeError('contributors') + return a.contributors + contributors = property(contributors) + + def publishers(self): + a = IZopeDublinCore(self.context, None) + if a is None: + raise AttributeError('publishers') + return a.publishers + publishers = property(publishers) + def created(self): a = IZopeDublinCore(self.context, None) if a is None: @@ -64,7 +92,14 @@ raise AttributeError('modified') return a.modified modified = property(modified) - + + def identifier(self): + a = IZopeDublinCore(self.context, None) + if a is None: + raise AttributeError('identifier') + return a.identifier + identifier = property(identifier) + def name(self): return zapi.name(self.context) _______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com