aboutsummaryrefslogtreecommitdiffstats
path: root/src/rest/parsers.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2010-12-29 19:37:57 +0000
committertom christie tom@tomchristie.com2010-12-29 19:37:57 +0000
commit650111dc8c0800e5b7d4c878c1d454657b68efca (patch)
treeb2cb8a07eb60abe20012b352d856bb1dcb13f440 /src/rest/parsers.py
downloaddjango-rest-framework-650111dc8c0800e5b7d4c878c1d454657b68efca.tar.bz2
Initial commit of all files to the repository.
Diffstat (limited to 'src/rest/parsers.py')
-rw-r--r--src/rest/parsers.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/rest/parsers.py b/src/rest/parsers.py
new file mode 100644
index 00000000..038065f0
--- /dev/null
+++ b/src/rest/parsers.py
@@ -0,0 +1,18 @@
+class BaseParser(object):
+ def __init__(self, resource, request):
+ self.resource = resource
+ self.request = request
+
+ def parse(self, input):
+ return {}
+
+
+class JSONParser(BaseParser):
+ pass
+
+class XMLParser(BaseParser):
+ pass
+
+class FormParser(BaseParser):
+ pass
+