summaryrefslogtreecommitdiffstats
path: root/api.py
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-04-14 07:15:26 +0530
committerAamir Khan <syst3m.w0rm@gmail.com>2012-04-14 07:15:26 +0530
commit0de692b3489435ae78187f69627865a860a281a6 (patch)
tree7bc45fbce9aef87dbb12b2d6bfb6087b19796ea1 /api.py
parent93b4ca1270745a81be571952e483560c0fc31ab1 (diff)
downloadhyperkitty-0de692b3489435ae78187f69627865a860a281a6.tar.gz
hyperkitty-0de692b3489435ae78187f69627865a860a281a6.tar.xz
hyperkitty-0de692b3489435ae78187f69627865a860a281a6.zip
Code cleaning for api.py
Diffstat (limited to 'api.py')
-rw-r--r--api.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/api.py b/api.py
index 1f934c5..dbfa4b9 100644
--- a/api.py
+++ b/api.py
@@ -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.