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

Florent Guillaume fg at nuxeo.com
Fri Mar 25 11:37:16 EST 2005


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

Modified Files:
      Tag: CMF-1_5-branch
	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.38.2.2 => 1.38.2.3 ===
--- Products/CMFDefault/DublinCore.py:1.38.2.2	Tue Oct 12 05:22:52 2004
+++ Products/CMFDefault/DublinCore.py	Fri Mar 25 11:36:46 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