web/views/json.py
changeset 9492 c7fc56eecd1a
parent 8900 010a59e12d89
child 10013 b68088082280
equal deleted inserted replaced
9484:31f070752462 9492:c7fc56eecd1a
    91     __regid__ = 'jsonexport'
    91     __regid__ = 'jsonexport'
    92     __select__ = any_rset() # means rset might be empty or have any shape
    92     __select__ = any_rset() # means rset might be empty or have any shape
    93     title = _('json-export-view')
    93     title = _('json-export-view')
    94 
    94 
    95     def call(self):
    95     def call(self):
    96         # XXX mimic w3c recommandations to serialize SPARQL results in json ?
    96         # XXX mimic w3c recommandations to serialize SPARQL results in json?
    97         #     http://www.w3.org/TR/rdf-sparql-json-res/
    97         #     http://www.w3.org/TR/rdf-sparql-json-res/
    98         self.wdata(self.cw_rset.rows)
    98         self.wdata(self.cw_rset.rows)
    99 
    99 
   100 
   100 
   101 class JsonEntityView(JsonMixIn, EntityView):
   101 class JsonEntityView(JsonMixIn, EntityView):