[Zope-Checkins] CVS: Releases/Zope/lib/python/TAL - markupbase.py:1.4.44.1

Evan Simpson cvs-admin at zope.org
Tue Nov 4 16:28:43 EST 2003


Update of /cvs-repository/Releases/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv19595/lib/python/TAL

Modified Files:
      Tag: Zope-2_7-branch
	markupbase.py 
Log Message:
Collector #426: Inconsistent, undocumented error() method.


=== Releases/Zope/lib/python/TAL/markupbase.py 1.4 => 1.4.44.1 ===
--- Releases/Zope/lib/python/TAL/markupbase.py:1.4	Wed Sep 25 12:13:48 2002
+++ Releases/Zope/lib/python/TAL/markupbase.py	Tue Nov  4 16:28:42 2003
@@ -20,6 +20,13 @@
         """Return current line number and offset."""
         return self.lineno, self.offset
 
+    def error(self, message):
+        """Return an error, showing current line number and offset.
+
+        Concrete subclasses *must* override this method.
+        """
+        raise NotImplementedError
+
     # Internal -- update line number and offset.  This should be
     # called for each piece of data exactly once, in order -- in other
     # words the concatenation of all the input strings to this
@@ -302,4 +309,4 @@
             return name.lower(), m.end()
         else:
             self.updatepos(declstartpos, i)
-            self.error("expected name token", self.getpos())
+            self.error("expected name token")




More information about the Zope-Checkins mailing list