[Pypi-checkins] r885 - trunk/pypi

martin.von.loewis python-checkins at python.org
Mon Feb 21 22:34:41 CET 2011


Author: martin.von.loewis
Date: Mon Feb 21 22:34:41 2011
New Revision: 885

Modified:
   trunk/pypi/webui.py
Log:
Complain if there are multiple :action parameters.


Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Mon Feb 21 22:34:41 2011
@@ -525,6 +525,8 @@
         path = self.env.get('PATH_INFO', '')
         if self.form.has_key(':action'):
             action = self.form[':action']
+            if isinstance(action, list):
+                raise RuntimeError("Multiple actions: %r" % action)
         elif path:
             # Split into path items, drop leading slash
             try:


More information about the Pypi-checkins mailing list