From: tilly-Q Date: Thu, 3 Apr 2014 16:20:30 +0000 (-0400) Subject: Took out all of the references to the temporary url I was using X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7b1ee4711c7ade0d1b4dba90b7199f969b9912b1;p=mediagoblin.git Took out all of the references to the temporary url I was using /metadata_context/v1 --- diff --git a/mediagoblin/routing.py b/mediagoblin/routing.py index a6b2a543..9f2584d3 100644 --- a/mediagoblin/routing.py +++ b/mediagoblin/routing.py @@ -29,8 +29,6 @@ def get_url_map(): add_route('index', '/', 'mediagoblin.views:root_view') add_route('terms_of_service','/terms_of_service', 'mediagoblin.views:terms_of_service'), - add_route('metadata_context','/metadata_context/v/', - 'mediagoblin.views:metadata_context_view'), mount('/auth', auth_routes) mount('/mod', moderation_routes) diff --git a/mediagoblin/templates/mediagoblin/metadata_contexts/v1 b/mediagoblin/templates/mediagoblin/metadata_contexts/v1 deleted file mode 100644 index 99882de2..00000000 --- a/mediagoblin/templates/mediagoblin/metadata_contexts/v1 +++ /dev/null @@ -1,70 +0,0 @@ -{ - "@context": { - "dcterms": "http://purl.org/dc/elements/1.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "contributor":{ - "@id":"dcterms:title", - "@type":"xsd:string" - }, - "coverage":{ - "@id":"dcterms:coverage", - "@type":"xsd:string" - }, - "created":{ - "@id":"dcterms:created", - "@type":"xsd:date" - }, - "creator":{ - "@id":"dcterms:created", - "@type":"xsd:date" - }, - "date":{ - "@id":"dcterms:date", - "@type":"xsd:date" - }, - "description":{ - "@id":"dcterms:description", - "@type":"xsd:string" - }, - "format":{ - "@id":"dcterms:format", - "@type":"xsd:string" - }, - "identifier":{ - "@id":"dcterms:identifier", - "@type":"xsd:string" - }, - "language":{ - "@id":"dcterms:language", - "@type":"xsd:string" - }, - "publisher":{ - "@id":"dcterms:publisher", - "@type":"xsd:string" - }, - "relation":{ - "@id":"dcterms:relation", - "@type":"xsd:string" - }, - "rights":{ - "@id":"dcterms:rights", - "@type":"xsd:anyURI" - }, - "source":{ - "@id":"dcterms:source", - "@type":"xsd:string" - }, - "subject":{ - "@id":"dcterms:subject", - "@type":"xsd:string" - }, - "title": { - "@id":"dcterms:title", - "@type":"xsd:string" - }, - "type":{ - "@id":"dcterms:type", - "@type":"xsd:string" - } - } -} diff --git a/mediagoblin/views.py b/mediagoblin/views.py index 1ed71473..009e48e4 100644 --- a/mediagoblin/views.py +++ b/mediagoblin/views.py @@ -62,9 +62,3 @@ def terms_of_service(request): return render_to_response(request, 'mediagoblin/terms_of_service.html', {}) - -def metadata_context_view(request): - version = request.matchdict['version_number'] - return render_to_response(request, - 'mediagoblin/metadata_contexts/v{version}'.format( - version=version), {})