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<int:version_number>/',
- 'mediagoblin.views:metadata_context_view'),
mount('/auth', auth_routes)
mount('/mod', moderation_routes)
+++ /dev/null
-{
- "@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"
- }
- }
-}
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), {})