#2846: WSGI merge removed `req.args.getlist()`, breaking WebAdmin
---------------------+------------------------------------------------------
 Reporter:  athomas  |       Owner:  jonas   
     Type:  defect   |      Status:  new     
 Priority:  low      |   Milestone:  0.10    
Component:  general  |     Version:  devel   
 Severity:  minor    |    Keywords:  webadmin
---------------------+------------------------------------------------------
 This patch seems to fix it:

 {{{
 #!diff
 Index: webadmin/plugin.py
 ===================================================================
 --- webadmin/plugin.py  (revision 2963)
 +++ webadmin/plugin.py  (working copy)
 @@ -125,8 +125,8 @@

      def _do_update(self, req):
          """Update component enablement."""
 -        components = req.args.getlist('component')
 -        enabled = req.args.getlist('enable')
 +        components = req.args['component']
 +        enabled = req.args['enable']
          changes = False

          # FIXME: this needs to be more intelligent and minimize multiple
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2846>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to