[CMF-checkins] CVS: CMF - DublinCore.py:1.7
tseaver@digicool.com
tseaver@digicool.com
Wed, 23 May 2001 18:58:06 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv15135/CMFDefault
Modified Files:
DublinCore.py
Log Message:
- Make 'DublinCore.content_type' call 'Format', instead of being an
alias (so polymorphism works as expected).
- Give 'PortalFolder' a 'content_type' which returns None (so it doesn't
acquire).
--- Updated File DublinCore.py in package CMF --
--- DublinCore.py 2001/05/21 22:33:10 1.6
+++ DublinCore.py 2001/05/23 22:58:05 1.7
@@ -241,7 +241,11 @@
#
# DublinCore utility methods
#
- content_type = Format # WebDAV needs this to do the Right Thing (TM)
+ def content_type( self ):
+ """
+ WebDAV needs this to do the Right Thing (TM).
+ """
+ return self.Format()
security.declarePublic( 'isEffective' )
def isEffective( self, date ):