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

Florent Guillaume fg at nuxeo.com
Fri Mar 25 11:39:55 EST 2005


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

Modified Files:
	DublinCore.py 
Log Message:
DublinCore: Fixed creators upgrade to not call a potentially costly
method on the user folder. (http://zope.org/Collectors/CMF/300)



=== Products/CMFDefault/DublinCore.py 1.40 => 1.41 ===
--- Products/CMFDefault/DublinCore.py:1.40	Tue Oct 12 05:23:18 2004
+++ Products/CMFDefault/DublinCore.py	Fri Mar 25 11:39:24 2005
@@ -124,9 +124,9 @@
         """
         if not hasattr(aq_base(self), 'creators'):
             # for content created with CMF versions before 1.5
-            owner = self.getOwner()
-            if hasattr(owner, 'getId'):
-                self.creators = ( owner.getId(), )
+            owner_tuple = self.getOwnerTuple()
+            if owner_tuple:
+                self.creators = (owner_tuple[1],)
             else:
                 self.creators = ()
         return self.creators



More information about the CMF-checkins mailing list