Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #173 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

[PATCH] Widget raises KeyError in input if params' keys don't contain the widget's name

Reported by: wkurdziolek@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TG Widgets Version:
Severity: normal Keywords:
Cc:

Description

The Widget class raises a KeyError exception in the input method on line 105 of source:trunk/turbogears/widgets/__init__.py if the params dict doesn't contain the widget's name as a key. The fix is to qualify the del statement w/ an if clause:

if params.has_key(self.name):
    del params[self.name]

Change History

comment:1 Changed 14 years ago by anonymous

  • Summary changed from Widget raises KeyError in input if params' keys don't contain the widget's name to [PATCH] Widget raises KeyError in input if params' keys don't contain the widget's name

comment:2 Changed 14 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

applied in [320]. Thanks!

Note: See TracTickets for help on using tickets.