summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-06-30 20:45:30 +0000
committerianb <devnull@localhost>2005-06-30 20:45:30 +0000
commit654ab75a978a6177c52fdf7cfa0f8d22f8dd4742 (patch)
tree966b95f8edaa33506e9e1222a784569e0507986e /paste
parentef0891eb3d26c8ae3464c9a7adf8093ddec9ad7b (diff)
downloadpaste-654ab75a978a6177c52fdf7cfa0f8d22f8dd4742.tar.gz
Patch from Thomas Jenkins (ticket #18, not completely applied to packing.py)
Diffstat (limited to 'paste')
-rw-r--r--paste/wareweb/dispatch.py4
-rw-r--r--paste/wareweb/packing.py1
2 files changed, 2 insertions, 3 deletions
diff --git a/paste/wareweb/dispatch.py b/paste/wareweb/dispatch.py
index 8cfc6ec..3e5f78b 100644
--- a/paste/wareweb/dispatch.py
+++ b/paste/wareweb/dispatch.py
@@ -76,9 +76,9 @@ class PathDispatch(MethodDispatch):
def find_method(self, servlet, ret_value):
parts = servlet.path_parts
if not parts:
- action == 'index'
+ action = 'index'
else:
- action == parts[0]
+ action = parts[0]
servlet.path_parts = parts[1:]
name, method = self.get_method(servlet, action)
if name is None:
diff --git a/paste/wareweb/packing.py b/paste/wareweb/packing.py
index a2b3217..9cf080b 100644
--- a/paste/wareweb/packing.py
+++ b/paste/wareweb/packing.py
@@ -121,7 +121,6 @@ class FunctionArgSpec(object):
def unpack_args(self, path_parts, fields):
args = []
kw = {}
- fields = fields.copy()
if len(self.positional) > len(path_parts):
raise HTTPBadRequest(
"Not enough parameters on the URL (expected %i more "