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 a5017d0 commit 0ce52dbCopy full SHA for 0ce52db
roundup/cgi/client.py
@@ -1,4 +1,4 @@
1
-# $Id: client.py,v 1.158 2004-02-14 01:17:38 jlgijsbers Exp $
+# $Id: client.py,v 1.159 2004-02-14 11:27:23 jlgijsbers Exp $
2
3
"""WWW request handler (also used in the stand-alone server).
4
"""
@@ -553,7 +553,12 @@ def handle_action(self):
553
else:
554
raise ValueError, 'No such action "%s"'%action
555
# call the mapped action
556
- action_klass(self).handle()
+ try:
557
+ action_klass(self).handle()
558
+ except TypeError:
559
+ # Old way of specifying actions.
560
+ getattr(self, action_klass)()
561
+
562
except ValueError, err:
563
self.error_message.append(str(err))
564
0 commit comments