#2428: TG 2.1a2 Routing Bug
------------------------+---------------------------------------------------
 Reporter:  rpetrello   |        Owner:                  
     Type:  defect      |       Status:  new             
 Priority:  normal      |    Milestone:  __unclassified__
Component:  TurboGears  |      Version:  2.1a2           
 Severity:  major       |   Resolution:                  
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by rpetrello):

  * severity:  normal => major

Comment:

 This seems to be caused when removing parameters from the argument list
 that aren't named parameters during routing.  Sometimes the passed
 `remainder` is a tuple.  Line 142, specifically, is attempting item
 assignment and failing:

 {{{
 Module tg.controllers.dispatcher:237 in _perform_call
 >>  r = self._call(func, params, remainder=remainder)
 Module tg.controllers.dispatcher:142 in _remove_argspec_params_from_params
 >>  remainder[i] = params[var]
 TypeError: 'tuple' object does not support item assignment

 i               0
 params          {'movieID': '1', 'type': u'drama'}
 remainder       ('1',)

 }}}

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