--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devtools/test/data/views/bug.py Wed Nov 05 15:52:50 2008 +0100
@@ -0,0 +1,27 @@
+"""only for unit tests !"""
+
+from cubicweb.common.view import EntityView
+
+HTML_PAGE = u"""<html>
+ <body>
+ <h1>Hello World !</h1>
+ </body>
+</html>
+"""
+
+class SimpleView(EntityView):
+ id = 'simple'
+ accepts = ('Bug',)
+
+ def call(self, **kwargs):
+ self.cell_call(0, 0)
+
+ def cell_call(self, row, col):
+ self.w(HTML_PAGE)
+
+class RaisingView(EntityView):
+ id = 'raising'
+ accepts = ('Bug',)
+
+ def cell_call(self, row, col):
+ raise ValueError()