Commit c671fd84 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove unused imports and local variables.

parent a1b917f6
......@@ -11,10 +11,10 @@
#
##############################################################################
__version__ = "$Revision: 1.10 $"[11:-2]
__version__ = "$Revision: 1.11 $"[11:-2]
import time, Interface, re
import time, Interface
from webdav.common import PreconditionFailed
class EtagBaseInterface(Interface.Base):
......
......@@ -13,10 +13,9 @@
"""WebDAV support - resource objects.
$Id: Resource.py,v 1.58 2003/11/18 13:17:20 tseaver Exp $
$Id: Resource.py,v 1.59 2003/12/27 00:05:48 jeremy Exp $
"""
import os
import sys
import mimetypes
import time
......@@ -317,7 +316,6 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
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 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
"""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)
......
......@@ -13,7 +13,7 @@
"""WebDAV xml request objects.
$Id: davcmds.py,v 1.22 2003/11/18 13:17:20 tseaver Exp $
$Id: davcmds.py,v 1.23 2003/12/27 00:05:48 jeremy Exp $
"""
import sys, os
......@@ -246,7 +246,6 @@ class PropPatch:
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 @@ class PropPatch:
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 @@ class Lock:
if token is None:
token = lock.getLockToken()
except ValueError, valerrors:
except ValueError:
errmsg = "412 Precondition Failed"
except:
errmsg = "403 Forbidden"
......
......@@ -17,9 +17,8 @@
in favor of a standard xml package once some issues are
worked out."""
__version__='$Revision: 1.15 $'[11:-2]
__version__='$Revision: 1.16 $'[11:-2]
import sys, os
import Shared.DC.xml.xmllib
from Acquisition import Implicit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment