Mercurial > hg > uploader
comparison uploader/dispatcher.py @ 6:d2990750e5d6
fix the way query string works
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 27 Dec 2009 16:35:48 -0500 |
parents | e5efa999911a |
children | f60ad139acc1 |
comparison
equal
deleted
inserted
replaced
5:04a77bdafaec | 6:d2990750e5d6 |
---|---|
22 if self.app: | 22 if self.app: |
23 assert hasattr(self.app, '__call__') | 23 assert hasattr(self.app, '__call__') |
24 self.auth = self.auth.lower() == 'true' | 24 self.auth = self.auth.lower() == 'true' |
25 self.subpath = self.subpath.lower() == 'true' | 25 self.subpath = self.subpath.lower() == 'true' |
26 if self.subpath: | 26 if self.subpath: |
27 if self.query_string: | 27 self.handlers = [ SubpathGet, SubpathPost ] |
28 self.handlers = [ SubpathGet, SubpathPost ] | |
29 else: | |
30 self.handlers = [ SubpathPost ] | |
31 else: | 28 else: |
32 self.handlers = [ Get, Post ] | 29 self.handlers = [ Get, Post ] |
33 | 30 |
34 ### methods dealing with HTTP | 31 ### methods dealing with HTTP |
35 def __call__(self, environ, start_response): | 32 def __call__(self, environ, start_response): |