comparison uploader/handlers.py @ 6:d2990750e5d6

fix the way query string works
author k0s <k0scist@gmail.com>
date Sun, 27 Dec 2009 16:35:48 -0500
parents 0b5fce452087
children a8c60480fce0
comparison
equal deleted inserted replaced
5:04a77bdafaec 6:d2990750e5d6
60 60
61 class SubpathGet(Get): 61 class SubpathGet(Get):
62 62
63 @classmethod 63 @classmethod
64 def match(cls, app, request): 64 def match(cls, app, request):
65 if request.method != 'GET' or not app.query_string: 65 if request.method != 'GET':
66 return False 66 return False
67 if app.query_string not in request.GET: 67 if app.query_string and (app.query_string not in request.GET):
68 return False 68 return False
69 _path = path(app.directory, request) 69 _path = path(app.directory, request)
70 if os.path.exists(_path) and os.path.isdir(_path): 70 if os.path.exists(_path) and os.path.isdir(_path):
71 return True 71 return True
72 72