Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # decorator
- def action(pattern='^$', method='get'):
- def _(handler):
- URL_MAP.append((pattern, method, handler))
- handler.__name__ = '%s_with_%s' % (handler.__name__, method)
- return handler
- return _
Add Comment
Please, Sign In to add comment