From 4eb9afdd5f2bedc0f4dd8b9f3da44945487b92cc Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 27 Feb 2008 17:18:40 +0000 Subject: improved error message git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@631657 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/mllib/dom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qpid/python/mllib') diff --git a/qpid/python/mllib/dom.py b/qpid/python/mllib/dom.py index 10b19d6db1..7c759dbdd5 100644 --- a/qpid/python/mllib/dom.py +++ b/qpid/python/mllib/dom.py @@ -72,7 +72,7 @@ class Dispatcher: cls = cls.base return False - def dispatch(self, f): + def dispatch(self, f, attrs = ""): cls = self while cls != None: if hasattr(f, cls.type): @@ -81,7 +81,6 @@ class Dispatcher: cls = cls.base cls = self - attrs = "" while cls != None: if attrs: sep = ", " @@ -151,9 +150,10 @@ class Tag(Node): def dispatch(self, f): try: - method = getattr(f, "do_" + self.name) + attr = "do_" + self.name + method = getattr(f, attr) except AttributeError: - return Dispatcher.dispatch(self, f) + return Dispatcher.dispatch(self, f, "'%s'" % attr) return method(self) class Leaf(Component, Dispatcher): -- cgit v1.2.1