devtools/test/data/views/bug.py
branchtls-sprint
changeset 1358 a7438eb2420c
parent 0 b97547f5f1fa
child 1977 606923dff11b
--- a/devtools/test/data/views/bug.py	Wed Apr 15 14:06:53 2009 +0200
+++ b/devtools/test/data/views/bug.py	Wed Apr 15 14:07:10 2009 +0200
@@ -1,6 +1,7 @@
 """only for unit tests !"""
 
-from cubicweb.common.view import EntityView
+from cubicweb.view import EntityView
+from cubicweb.selectors import implements
 
 HTML_PAGE = u"""<html>
   <body>
@@ -11,7 +12,7 @@
 
 class SimpleView(EntityView):
     id = 'simple'
-    accepts = ('Bug',)
+    __select__ = implements('Bug',)
 
     def call(self, **kwargs):
         self.cell_call(0, 0)
@@ -21,7 +22,7 @@
 
 class RaisingView(EntityView):
     id = 'raising'
-    accepts = ('Bug',)
+    __select__ = implements('Bug',)
 
     def cell_call(self, row, col):
         raise ValueError()