diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-02-27 17:18:40 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-02-27 17:18:40 +0000 |
| commit | 4eb9afdd5f2bedc0f4dd8b9f3da44945487b92cc (patch) | |
| tree | 3d7374ede9965d35d390705d482d7a41e49cf508 /qpid/python/mllib | |
| parent | 0e9451480c83511bd37f99d83ad82b30b399f05d (diff) | |
| download | qpid-python-4eb9afdd5f2bedc0f4dd8b9f3da44945487b92cc.tar.gz | |
improved error message
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@631657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/mllib')
| -rw-r--r-- | qpid/python/mllib/dom.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): |
