[Zope-Checkins] CVS: Zope/lib/python/webdav - xmltools.py:1.16 davcmds.py:1.23 Resource.py:1.59 EtagSupport.py:1.11

Jeremy Hylton jeremy at zope.com
Fri Dec 26 19:05:49 EST 2003


Update of /cvs-repository/Zope/lib/python/webdav
In directory cvs.zope.org:/tmp/cvs-serv17929/lib/python/webdav

Modified Files:
	xmltools.py davcmds.py Resource.py EtagSupport.py 
Log Message:
Remove unused imports and local variables.


=== Zope/lib/python/webdav/xmltools.py 1.15 => 1.16 ===
--- Zope/lib/python/webdav/xmltools.py:1.15	Tue Apr  8 14:48:22 2003
+++ Zope/lib/python/webdav/xmltools.py	Fri Dec 26 19:05:48 2003
@@ -19,7 +19,6 @@
 
 __version__='$Revision$'[11:-2]
 
-import sys, os
 import Shared.DC.xml.xmllib
 from Acquisition import Implicit
 


=== Zope/lib/python/webdav/davcmds.py 1.22 => 1.23 ===
--- Zope/lib/python/webdav/davcmds.py:1.22	Tue Nov 18 08:17:20 2003
+++ Zope/lib/python/webdav/davcmds.py	Fri Dec 26 19:05:48 2003
@@ -246,7 +246,6 @@
                 if propset is None:
                     propsets.manage_addPropertySheet('', ns)
                     propset=propsets.get(ns)
-                propdict=propset._propdict()
                 if propset.hasProperty(name):
                     try:
                         propset._updateProperty(name, val, meta=md)
@@ -272,8 +271,6 @@
                     except:
                         errors.append('%s cannot be deleted.' % name)
                         status='409 Conflict'
-            if result != '200 OK':
-                abort = 1
             result.write('<d:propstat xmlns:n="%s">\n' \
                          '  <d:prop>\n' \
                          '  <n:%s/>\n' \
@@ -360,7 +357,7 @@
             if token is None:
                 token = lock.getLockToken()
 
-        except ValueError, valerrors:
+        except ValueError:
             errmsg = "412 Precondition Failed"
         except:
             errmsg = "403 Forbidden"


=== Zope/lib/python/webdav/Resource.py 1.58 => 1.59 ===
--- Zope/lib/python/webdav/Resource.py:1.58	Tue Nov 18 08:17:20 2003
+++ Zope/lib/python/webdav/Resource.py	Fri Dec 26 19:05:48 2003
@@ -16,7 +16,6 @@
 $Id$
 """
 
-import os
 import sys
 import mimetypes
 import time
@@ -317,7 +316,6 @@
             raise BadRequest, 'Invalid Destination header'
 
         name = path.pop()
-        parent_path = '/'.join(path)
 
         oflag=REQUEST.get_header('Overwrite', 'F').upper()
         if not oflag in ('T', 'F'):
@@ -558,7 +556,6 @@
         """Remove an existing lock on a resource."""
         self.dav__init(REQUEST, RESPONSE)
         security = getSecurityManager()
-        user = security.getUser()
         token = REQUEST.get_header('Lock-Token', '')
         url = REQUEST['URL']
         token = tokenFinder(token)


=== Zope/lib/python/webdav/EtagSupport.py 1.10 => 1.11 ===
--- Zope/lib/python/webdav/EtagSupport.py:1.10	Tue Nov 18 08:17:20 2003
+++ Zope/lib/python/webdav/EtagSupport.py	Fri Dec 26 19:05:48 2003
@@ -14,7 +14,7 @@
 __version__ = "$Revision$"[11:-2]
 
 
-import time, Interface, re
+import time, Interface
 from webdav.common import PreconditionFailed
 
 class EtagBaseInterface(Interface.Base):




More information about the Zope-Checkins mailing list