[CMF-checkins] CVS: Products/CMFDefault - DublinCore.py:1.37

Yvo Schubbe y.2004_ at wcm-solutions.de
Wed Aug 11 06:50:34 EDT 2004


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv12907/CMFDefault

Modified Files:
	DublinCore.py 
Log Message:
- fixed PUT for new objects (NullResource calls addCreator on a bare object)
- some related cleanup and test refactoring


=== Products/CMFDefault/DublinCore.py 1.36 => 1.37 ===
--- Products/CMFDefault/DublinCore.py:1.36	Sun Aug  1 19:02:12 2004
+++ Products/CMFDefault/DublinCore.py	Wed Aug 11 06:50:04 2004
@@ -91,8 +91,8 @@
         """ Add creator to Dublin Core creators.
         """
         if creator is None:
-            mtool = getToolByName(self, 'portal_membership')
-            creator = mtool.getAuthenticatedMember().getId()
+            mtool = getToolByName(self, 'portal_membership', None)
+            creator = mtool and mtool.getAuthenticatedMember().getId()
 
         # call self.listCreators() to make sure self.creators exists
         if creator and not creator in self.listCreators():



More information about the CMF-checkins mailing list