[CMF-checkins] CVS: CMF/CMFDefault - DublinCore.py:1.20
Tres Seaver
tseaver@zope.com
Mon, 22 Jul 2002 19:23:28 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv19549/CMFDefault
Modified Files:
DublinCore.py
Log Message:
- Merge date string hardening from 1.3 branch.
=== CMF/CMFDefault/DublinCore.py 1.19 => 1.20 ===
"""
Dublin Core element - date resource becomes effective.
"""
- return self.effective_date and self.effective_date.ISO() or 'None'
+ ed = getattr( self, 'effective_date', None )
+ return ed and ed.ISO() or 'None'
security.declarePublic( 'ExpirationDate' )
def ExpirationDate( self ):
"""
Dublin Core element - date resource expires.
"""
- return self.expiration_date and self.expiration_date.ISO() or 'None'
+ ed = getattr( self, 'expiration_date', None )
+ return ed and ed.ISO() or 'None'
security.declarePublic( 'ModificationDate' )
def ModificationDate( self ):