Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Remove deprecated JsonHandler class
Browse files Browse the repository at this point in the history
Favor updating code over keeping something outdated around
  • Loading branch information
William Lachance committed Aug 29, 2011
1 parent 2bcebce commit 854da4d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions templeton/handlers.py
Expand Up @@ -51,17 +51,3 @@ def wrap(*a, **kw):
web.header('Content-Type', 'application/json; charset=utf-8')
return results
return wrap


class JsonHandler(object):
"""
Deprecated; use decorators instead, allowing for mixed response types.
"""

@json_response
def GET(self):
args, body = get_request_parms()
return self._GET(args, body)

def _GET(self, params, body):
raise NotImplementedError

0 comments on commit 854da4d

Please sign in to comment.