Merge branch 'reflow'
[wolnelektury.git] / apps / oai / views.py
diff --git a/apps/oai/views.py b/apps/oai/views.py
deleted file mode 100644 (file)
index 292fbc9..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-
-from oai.handlers import Catalogue
-from oaipmh.server import ServerBase, oai_dc_writer, NS_OAIDC, NS_DC, NS_XSI
-from oaipmh.metadata import MetadataRegistry
-from django.http import HttpResponse
-from lxml.etree import tostring
-
-metadata_registry = MetadataRegistry()
-metadata_registry.registerWriter('oai_dc', oai_dc_writer)
-ns_map = {'oai_dc': NS_OAIDC, 'dc': NS_DC, 'xsi': NS_XSI}
-
-server = ServerBase(Catalogue(), metadata_registry, ns_map)
-
-
-def oaipmh(request):
-    print request.GET
-    resp = server.handleRequest(request.GET)
-    return HttpResponse(resp)