equal
deleted
inserted
replaced
497 path = ex.location |
497 path = ex.location |
498 params = {} |
498 params = {} |
499 else: |
499 else: |
500 cleanup = lambda p: (p[0], unquote(p[1])) |
500 cleanup = lambda p: (p[0], unquote(p[1])) |
501 params = dict(cleanup(p.split('=', 1)) for p in params.split('&') if p) |
501 params = dict(cleanup(p.split('=', 1)) for p in params.split('&') if p) |
502 path = path[len(req.base_url()):] |
502 if path.startswith(req.base_url()): # may be relative |
|
503 path = path[len(req.base_url()):] |
503 return path, params |
504 return path, params |
504 else: |
505 else: |
505 self.fail('expected a Redirect exception') |
506 self.fail('expected a Redirect exception') |
506 |
507 |
507 def expect_redirect_publish(self, req, path='edit'): |
508 def expect_redirect_publish(self, req, path='edit'): |