aboutsummaryrefslogtreecommitdiffstats
path: root/flywheel
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-01-27 21:46:47 +0000
committertom christie tom@tomchristie.com2011-01-27 21:46:47 +0000
commit0bc9d3ae0d25844b4f5c924d869813ae51249b33 (patch)
treeba53af9c6ffa6d6f010c0096e2d5d8b09aaee95a /flywheel
parente9168b508b38b545406089c8592342e5eb70f9f9 (diff)
downloaddjango-rest-framework-0bc9d3ae0d25844b4f5c924d869813ae51249b33.tar.bz2
Minor cleanup on Resource
Diffstat (limited to 'flywheel')
-rw-r--r--flywheel/resource.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/flywheel/resource.py b/flywheel/resource.py
index cc566752..677bdfce 100644
--- a/flywheel/resource.py
+++ b/flywheel/resource.py
@@ -11,15 +11,8 @@ import re
# TODO: Figure how out references and named urls need to work nicely
# TODO: POST on existing 404 URL, PUT on existing 404 URL
#
-# NEXT: Validators to become generic, forms to move out of Resource into FormValidator
-# NEXT: Permissions to become generic, UserAllowed, Throttling
# NEXT: Exceptions on func() -> 500, tracebacks emitted if settings.DEBUG
-# NEXT: Caching cleverness
-# NEXT: Test non-existent fields on ModelResources
#
-# FUTURE: Erroring on read-only fields
-
-# Documentation, Release
__all__ = ['Resource']
@@ -69,13 +62,7 @@ class Resource(object):
"""Make the class callable so it can be used as a Django view."""
self = object.__new__(cls)
self.__init__(request)
- # TODO: Remove this debugging code
- try:
- return self._handle_request(request, *args, **kwargs)
- except:
- import traceback
- traceback.print_exc()
- raise
+ return self._handle_request(request, *args, **kwargs)
def __init__(self, request):