devtools/test/data/views/bug.py
brancholdstable
changeset 4985 02b52bf9f5f8
parent 4563 c25da7573ebd
parent 4982 4247066fd3de
child 5422 0865e1e90674
--- a/devtools/test/data/views/bug.py	Fri Feb 12 15:18:00 2010 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-"""only for unit tests !
-
-:organization: Logilab
-:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
-:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
-:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
-"""
-
-from cubicweb.view import EntityView
-from cubicweb.selectors import implements
-
-HTML_PAGE = u"""<html>
-  <body>
-    <h1>Hello World !</h1>
-  </body>
-</html>
-"""
-
-class SimpleView(EntityView):
-    id = 'simple'
-    __select__ = implements('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'
-    __select__ = implements('Bug',)
-
-    def cell_call(self, row, col):
-        raise ValueError()