[CMF-checkins] CVS: CMF - DublinCore.py:1.3.2.1
tseaver@digicool.com
tseaver@digicool.com
Thu, 12 Apr 2001 15:11:38 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak:/tmp/cvs-serv1269/CMFDefault
Modified Files:
Tag: CMF-1_0-branch
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:37 1.3.2.1
@@ -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 ):