[CMF-checkins] CVS: CMF/CMFCore/interfaces - DublinCore.py:1.5.2.1
Yvo Schubbe
schubbe at web.de
Fri Dec 19 09:37:35 EST 2003
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv6937/CMFCore/interfaces
Modified Files:
Tag: yuppie-collector025-branch
DublinCore.py
Log Message:
- added listCreators and listContributors to DublinCore interface
- implemented these methods in DefaultDublinCoreImpl
- added addCreator method to DefaultDublinCoreImpl and made it called by notifyModified
- updated DiscussionItem to use the new interface
=== CMF/CMFCore/interfaces/DublinCore.py 1.5 => 1.5.2.1 ===
--- CMF/CMFCore/interfaces/DublinCore.py:1.5 Mon Dec 15 11:20:21 2003
+++ CMF/CMFCore/interfaces/DublinCore.py Fri Dec 19 09:37:03 2003
@@ -34,10 +34,21 @@
Returns -- String
"""
+ def listCreators():
+ """ List Dublin Core Creator elements - resource authors.
+
+ Depending on the implementation, this returns the full name(s) of the
+ author(s) of the content object or their ids.
+
+ Permission -- View
+
+ Returns -- Sequence of strings
+ """
+
def Creator():
- """ Dublin Core Creator element - resource creator.
+ """ Dublin Core Creator element - resource author.
- Return the full name(s) of the author(s) of the content object.
+ The first Dublin Core Creator element or an empty string.
Permission -- View
@@ -75,7 +86,7 @@
Returns -- String
"""
- def Contributors():
+ def listContributors():
""" Dublin Core Contributor elements - resource collaborators.
Return zero or additional collaborators.
@@ -83,6 +94,12 @@
Permission -- View
Returns -- Sequence of strings
+ """
+
+ def Contributors():
+ """ Deprecated alias of listContributors.
+
+ 'initial caps' names are reserved for strings.
"""
def Date():
More information about the CMF-checkins
mailing list