[entity] rename vid argument of .view(...) into __vid to avoid potential conflicts with kwargs
--- 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):