entity.py
branchstable
changeset 4406 b3f61c38526b
parent 4212 ab6573088b4a
child 4408 899b426087ab
--- 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):