[CMF-checkins] CVS: Products/CMFDefault - DublinCore.py:1.36
Tres Seaver
tseaver at zope.com
Sun Aug 1 19:02:43 EDT 2004
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv10995/CMFDefault
Modified Files:
DublinCore.py
Log Message:
- Use the 'portal_metadata' tool's 'getPublisher' for the DublinCore
'Publisher' element (thanks to Eric Brown for the patch).
=== Products/CMFDefault/DublinCore.py 1.35 => 1.36 ===
--- Products/CMFDefault/DublinCore.py:1.35 Fri Jul 16 13:06:12 2004
+++ Products/CMFDefault/DublinCore.py Sun Aug 1 19:02:12 2004
@@ -154,7 +154,11 @@
def Publisher( self ):
""" Dublin Core Publisher element - resource publisher.
"""
- # XXX: fixme using 'portal_metadata'
+ tool = getToolByName(self, 'portal_metadata', None)
+
+ if tool is not None:
+ return tool.getPublisher()
+
return 'No publisher'
security.declareProtected(View, 'listContributors')
More information about the CMF-checkins
mailing list