#2377: Dispatcher regression in TG2.1:
------------------------+---------------------------------------------------
 Reporter:  lmacken     |        Owner:  percious
     Type:  defect      |       Status:  new     
 Priority:  normal      |    Milestone:  2.1     
Component:  TurboGears  |      Version:  2.1     
 Severity:  critical    |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by lmacken):

 I still have been unable to duplicate this issue in TG's test suite.
 However, I did instrument the dispatcher to get some potentially useful
 output...

 {{{
 DecoratedController._call({'params': {}, 'controller': <bound method
 WidgetController.default of <moksha.controllers.widgets.WidgetController
 object at 0x2dbc990>>, 'remainder': ['mokshatest'], 'self':
 <moksha.controllers.root.RootController object at 0x30ba9d0>})
 _get_params_with_argspec(<bound method WidgetController.default of
 <moksha.controllers.widgets.WidgetController object at 0x2dbc990>>, {},
 ['mokshatest'])
 Returning {'widget': 'mokshatest'}
 _perform_validate(<bound method WidgetController.default of
 <moksha.controllers.widgets.WidgetController object at 0x2dbc990>>,
 {'widget': 'mokshatest'})
 Returning {'chrome': None, 'source': u'', 'widget': u'mokshatest', 'live':
 None, 'module': None}
 _remove_argspec_params_from_params(<bound method WidgetController.default
 of <moksha.controllers.widgets.WidgetController object at 0x2dbc990>>,
 {'chrome': None, 'source': u'', 'widget': u'mokshatest', 'live': None,
 'module': None}, ['mokshatest'])
 EXCEPTION: list assignment index out of range

 }}}

 So it looks like it _get_params_with_argspec associates the 'mokshatest'
 argument with the 'widget' argument, which is fine.  However, it still
 keeps 'mokshatest' as the remainder when passing it to
 _remove_argspec_params_from_params

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2377#comment:3>
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