[CMF-checkins] CVS: CMF/CMFDefault - SkinnedFolder.py:1.13.4.2

Stefan H. Holek stefan at epy.co.at
Sat Jan 31 05:43:58 EST 2004


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv5909

Modified Files:
      Tag: CMF-1_4-branch
	SkinnedFolder.py 
Log Message:
Made SkinnedFolder's Creator() method resemble the one from DublinCore to
a) cater for unowned objects
b) shut up a deprecation warning in Zope 2.6.4/2.7.0


=== CMF/CMFDefault/SkinnedFolder.py 1.13.4.1 => 1.13.4.2 ===
--- CMF/CMFDefault/SkinnedFolder.py:1.13.4.1	Fri May  9 17:31:39 2003
+++ CMF/CMFDefault/SkinnedFolder.py	Sat Jan 31 05:43:57 2004
@@ -89,7 +89,10 @@
         """
             Return the ID of our owner.
         """
-        return self.getOwner( info=1 )[1]
+        owner = self.getOwner()
+        if hasattr( owner, 'getId' ):
+            return owner.getId()
+        return 'No owner'
 
     # We derive from CMFCatalogAware first, so we are cataloged too.
 




More information about the CMF-checkins mailing list