diff options
| author | tom christie tom@tomchristie.com | 2010-12-29 19:37:57 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2010-12-29 19:37:57 +0000 |
| commit | 650111dc8c0800e5b7d4c878c1d454657b68efca (patch) | |
| tree | b2cb8a07eb60abe20012b352d856bb1dcb13f440 /src/rest/parsers.py | |
| download | django-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.py | 18 |
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 + |
