goa/db.py
changeset 2650 18aec79ec3a3
parent 1977 606923dff11b
child 2792 135580d15d42
child 3689 deb13e88e037
--- a/goa/db.py	Mon Aug 03 09:37:13 2009 +0200
+++ b/goa/db.py	Mon Aug 03 10:50:57 2009 +0200
@@ -274,8 +274,8 @@
 
     def view(self, vid, __registry='views', **kwargs):
         """shortcut to apply a view on this entity"""
-        return self.vreg.render(__registry, vid, self.req, rset=self.rset,
-                                row=self.row, col=self.col, **kwargs)
+        return self.vreg[__registry]render(vid, self.req, rset=self.rset,
+                                           row=self.row, col=self.col, **kwargs)
 
     @classmethod
     def _rest_attr_info(cls):