[CMF-checkins] CVS: CMF - Portal.py:1.20
tseaver@digicool.com
tseaver@digicool.com
Thu, 31 May 2001 22:59:03 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv23601/CMFDefault
Modified Files:
Portal.py
Log Message:
- Initialize default DublinCore metadata for the site, so that *some*
value is available everywhere (Tracker issue #285).
--- Updated File Portal.py in package CMF --
--- Portal.py 2001/05/29 18:57:44 1.19
+++ Portal.py 2001/06/01 02:59:02 1.20
@@ -126,11 +126,22 @@
, ( 'View', ( 'isEffective', ) )
)
+ def __init__( self, id, title='' ):
+ PortalObjectBase.__init__( self, id, title )
+ DefaultDublinCoreImpl.__init__( self )
+
def isEffective( self, date ):
"""
Override DefaultDublinCoreImpl's test, since we are always viewable.
"""
return 1
+
+ def reindexObject( self ):
+ """
+ Override DefaultDublinCoreImpl's method (so that we can play
+ in 'edtiMetadata').
+ """
+ pass
#
# The following two methods allow conversion of portal content from