[rdf] add method so one can call entity.view('rdf') stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 16 Jun 2011 11:29:31 +0200
branchstable
changeset 7519 4e531c8697f8
parent 7518 2431e3e9a4f2
child 7520 b7456b454334
[rdf] add method so one can call entity.view('rdf')
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