[CMF-checkins] CVS: CMF - DublinCore.py:1.4
tseaver@digicool.com
tseaver@digicool.com
Thu, 12 Apr 2001 15:11:29 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak:/tmp/cvs-serv1178/CMFDefault
Modified Files:
DublinCore.py
Log Message:
* Protect mutators
--- Updated File DublinCore.py in package CMF --
--- DublinCore.py 2001/03/02 20:10:34 1.3
+++ DublinCore.py 2001/04/12 19:11:28 1.4
@@ -119,7 +119,17 @@
, ( 'Owner','Manager','Reviewer' )
),
( 'Modify portal content'
- , ( 'editMetadata', )
+ , ( 'editMetadata'
+ , 'setTitle'
+ , 'setSubject'
+ , 'setDescription'
+ , 'setContributors'
+ , 'setEffectiveDate'
+ , 'setExpirationDate'
+ , 'setFormat'
+ , 'setLanguage'
+ , 'setRights'
+ )
),
)
@@ -303,8 +313,9 @@
def _datify( self, attrib ):
if attrib == 'None':
attrib = None
- if attrib is not None:
- attrib = DateTime( attrib )
+ elif not isinstance( attrib, DateTime ):
+ if attrib is not None:
+ attrib = DateTime( attrib )
return attrib
def setTitle( self, title ):