#2425: TG 2.1 dispatch arg-value errors
----------------------------+-----------------------------------------------
 Reporter:  seedifferently  |       Owner:                  
     Type:  defect          |      Status:  new             
 Priority:  normal          |   Milestone:  __unclassified__
Component:  TurboGears      |     Version:  trunk           
 Severity:  major           |    Keywords:                  
----------------------------+-----------------------------------------------
 I know a lot of work has gone into dispatch in v2.1 (thanks Chris!), but
 controller methods like this are breaking my apps on an upgrade from 2.0
 to 2.1alpha:


 {{{
     @expose()
     def test(self, id, one=None, two=2, three=3):
         return 'test'
 }}}

 Go to http://127.0.0.1:8080/test/1 and you will get:


 {{{
 File '/[...]/TG21/lib/python2.5/site-
 packages/TurboGears2-2.1a3-py2.5.egg/tg/controllers/dispatcher.py', line
 142 in _remove_argspec_params_from_params
   remainder[i] = params[var]
 KeyError: 'one'
 }}}

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2425>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

-- 
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en

Reply via email to