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

Andy McKay andy@agmweb.ca
Fri, 14 Mar 2003 15:14:02 -0500


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

Modified Files:
	DublinCore.py 
Log Message:
Bug #69


=== CMF/CMFDefault/DublinCore.py 1.24 => 1.25 ===
--- CMF/CMFDefault/DublinCore.py:1.24	Mon Nov 18 09:15:05 2002
+++ CMF/CMFDefault/DublinCore.py	Fri Mar 14 15:14:01 2003
@@ -446,7 +446,11 @@
         used to be:  editMetadata = WorkflowAction(_editMetadata)
         Need to add check for webDAV locked resource for TTW methods.
         """
-        self.failIfLocked()
+        # as per bug #69, we cant assume they use the webdav
+        # locking interface, and fail gracefully if they dont
+        if hasattr(self, 'failIfLocked'):
+            self.failIfLocked()
+            
         self._editMetadata(title=title
                      , subject=subject
                      , description=description