schemaviewer.py
changeset 2650 18aec79ec3a3
parent 2126 a25859917ccc
child 2996 866a2c135c33
--- a/schemaviewer.py	Mon Aug 03 09:37:13 2009 +0200
+++ b/schemaviewer.py	Mon Aug 03 10:50:57 2009 +0200
@@ -19,7 +19,7 @@
         self.req = req
         if req is not None:
             self.req.add_css('cubicweb.schema.css')
-            self._possible_views = req.vreg.possible_views
+            self._possible_views = req.vreg['views'].possible_views
             if not encoding:
                 encoding = req.encoding
         else: