[entity] rename vid argument of .view(...) into __vid to avoid potential conflicts with kwargs stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 29 Jan 2010 16:45:18 +0100
branchstable
changeset 4406 b3f61c38526b
parent 4405 fe31bb5dada5
child 4407 e4f921a68703
[entity] rename vid argument of .view(...) into __vid to avoid potential conflicts with kwargs
entity.py
--- a/entity.py	Fri Jan 29 16:43:57 2010 +0100
+++ b/entity.py	Fri Jan 29 16:45:18 2010 +0100
@@ -377,9 +377,9 @@
     def has_perm(self, action):
         return self.e_schema.has_perm(self.req, action, self.eid)
 
-    def view(self, vid, __registry='views', **kwargs):
+    def view(self, __vid, __registry='views', **kwargs):
         """shortcut to apply a view on this entity"""
-        return self.vreg[__registry].render(vid, self.req, rset=self.rset,
+        return self.vreg[__registry].render(__vid, self.req, rset=self.rset,
                                             row=self.row, col=self.col, **kwargs)
 
     def absolute_url(self, *args, **kwargs):