src/p4l/api/renderers.py
author ymh <ymh.work@gmail.com>
Mon, 23 Sep 2013 00:38:16 +0200
changeset 116 0a6c7c8f8490
parent 26 a0e152dd1fad
child 126 a345f1a67bf1
permissions -rw-r--r--
update translations

# -*- coding: utf-8 -*-
'''
Created on Sep 2, 2013

@author: ymh
'''

from rest_framework.renderers import BaseRenderer

class RdfXmlRenderer(BaseRenderer):
    
    media_type = "application/rdf+xml"
    format = "rdf"
        
    def render(self, data, accepted_media_type=None, renderer_context=None):
        raise NotImplemented('Renderer class requires .render() to be implemented')