# HG changeset patch # User Sylvain Thénault # Date 1308216571 -7200 # Node ID 4e531c8697f892a7e015c82507942dccde27fd1f # Parent 2431e3e9a4f2ef0cf3c4b94a9c70c16279ade30e [rdf] add method so one can call entity.view('rdf') diff -r 2431e3e9a4f2 -r 4e531c8697f8 web/views/rdf.py --- a/web/views/rdf.py Wed Jun 15 19:22:05 2011 +0200 +++ b/web/views/rdf.py Thu Jun 16 11:29:31 2011 +0200 @@ -59,6 +59,9 @@ self.entity2graph(graph, entity) self.w(graph.serialize().decode('utf-8')) + def entity_call(self, entity): + self.call() + def entity2graph(self, graph, entity): cwuri = URIRef(entity.cwuri) add = graph.add