diff options
author | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-04-14 07:15:26 +0530 |
---|---|---|
committer | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-04-14 07:15:26 +0530 |
commit | 0de692b3489435ae78187f69627865a860a281a6 (patch) | |
tree | 7bc45fbce9aef87dbb12b2d6bfb6087b19796ea1 /api.py | |
parent | 93b4ca1270745a81be571952e483560c0fc31ab1 (diff) | |
download | hyperkitty-0de692b3489435ae78187f69627865a860a281a6.tar.gz hyperkitty-0de692b3489435ae78187f69627865a860a281a6.tar.xz hyperkitty-0de692b3489435ae78187f69627865a860a281a6.zip |
Code cleaning for api.py
Diffstat (limited to 'api.py')
-rw-r--r-- | api.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,16 +1,12 @@ -# mongodb/api.py -from djangorestframework.views import View +#-*- coding: utf-8 -*- +from djangorestframework.views import View from django.conf.urls.defaults import url from django.http import HttpResponseNotModified, HttpResponse from lib import mongo -import pymongo import json import re -connection = pymongo.Connection('localhost', 27017) - - class EmailResource(View): """ Resource used to retrieve emails from the archives using the REST API. |