We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e021f8 commit 65fb2baCopy full SHA for 65fb2ba
roundup/cgi/client.py
@@ -1,4 +1,4 @@
1
-# $Id: client.py,v 1.160 2004-02-14 19:58:20 jlgijsbers Exp $
+# $Id: client.py,v 1.161 2004-02-15 10:08:20 jlgijsbers Exp $
2
3
"""WWW request handler (also used in the stand-alone server).
4
"""
@@ -552,12 +552,13 @@ def handle_action(self):
552
break
553
else:
554
raise ValueError, 'No such action "%s"'%action
555
+
556
# call the mapped action
- try:
557
- action_klass(self).execute()
558
- except TypeError:
559
- # Old way of specifying actions.
+ if isinstance(action_klass, type('')):
+ # old way of specifying actions
560
getattr(self, action_klass)()
+ else:
561
+ action_klass(self).handle()
562
563
except ValueError, err:
564
self.error_message.append(str(err))
0 commit comments