Created
June 15, 2010 17:42
-
-
Save whitmo/439417 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # use for howler tests | |
| class FakeBaboonCheckout(object): | |
| def __init__(self): | |
| pass | |
| @dec.wsgify | |
| def __call__(self, request): | |
| import pdb;pdb.set_trace() | |
| seg = request.path_info_pop() | |
| assert seg == 'checkout', ValueError('looking for "checkout", not "%s"') | |
| func = getattr(self, request.method, None) | |
| if func is None: | |
| raise exc.HTTPBadRequest('Checkout does not support %s' %request.method) | |
| return func(request) | |
| def GET(request): | |
| import pdb;pdb.set_trace() | |
| def POST(request): | |
| import pdb;pdb.set_trace() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment