[CMF-checkins] CVS: Products/CMFCore - PortalContent.py:1.27

Andrew Sawyers andrew@digicool.com
Fri, 31 Aug 2001 14:04:44 -0400


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv24388

Modified Files:
	PortalContent.py 
Log Message:

*Check on __implements__ for WriteLock support


=== Products/CMFCore/PortalContent.py 1.26 => 1.27 ===
 from utils import getToolByName, _checkPermission
 try: from webdav.WriteLockInterface import WriteLockInterface
-except ImportError: pass
+except ImportError: NoWL = 1
 from Acquisition import aq_base
 
 
@@ -108,8 +108,11 @@
         Derived classes must implement the interface described in
         interfaces/DublinCore.py.
     """
-
-    __implements__ = (WriteLockInterface, Contentish,)
+    
+    if not NoWL:
+        __implements__ = (WriteLockInterface, Contentish,)
+    else:
+        __implements__ = (Contentish)
     isPortalContent = 1
     _isPortalContent = 1  # More reliable than 'isPortalContent'.