entity.py
changeset 2058 7ef12c03447c
parent 2005 e8032965f37a
child 2059 af33833d7571
--- a/entity.py	Fri Jun 05 15:06:55 2009 +0200
+++ b/entity.py	Fri Jun 05 15:09:20 2009 +0200
@@ -368,9 +368,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, **kwargs):
         """shortcut to apply a view on this entity"""
-        return self.vreg.render(__registry, vid, self.req, rset=self.rset,
+        return self.vreg.render(vid, self.req, rset=self.rset,
                                 row=self.row, col=self.col, **kwargs)
 
     def absolute_url(self, method=None, **kwargs):
@@ -725,7 +725,7 @@
         interpreted as a separator in case vocabulary results are grouped
         """
         from logilab.common.testlib import mock_object
-        form = self.vreg.select_object('forms', 'edition', self.req, entity=self)
+        form = self.vreg.select('forms', 'edition', self.req, entity=self)
         field = mock_object(name=rtype, role=role)
         return form.form_field_vocabulary(field, limit)