view.py
branchstable
changeset 8204 332596be995e
parent 8174 b3e87e6865ef
child 8216 99ff746e8de8
child 8419 dd222fcc85d3
--- a/view.py	Fri Feb 10 10:00:00 2012 +0100
+++ b/view.py	Fri Feb 10 10:01:04 2012 +0100
@@ -196,7 +196,7 @@
         """
         rset = self.cw_rset
         if rset is None:
-            raise NotImplementedError, (self, "an rset is required")
+            raise NotImplementedError("%r an rset is required" % self)
         wrap = self.templatable and len(rset) > 1 and self.add_div_section
         # avoid re-selection if rset of size 1, we already have the most
         # specific view
@@ -218,7 +218,7 @@
 
     def cell_call(self, row, col, **kwargs):
         """the view is called for a particular result set cell"""
-        raise NotImplementedError, self
+        raise NotImplementedError(repr(self))
 
     def linkable(self):
         """return True if the view may be linked in a menu
@@ -379,7 +379,7 @@
         self.entity_call(self.cw_rset.get_entity(row, col), **kwargs)
 
     def entity_call(self, entity, **kwargs):
-        raise NotImplementedError()
+        raise NotImplementedError('%r %r' % (self.__regid__, self.__class__))
 
 
 class StartupView(View):