m = regexp.match(key)
if m != None:
handler = getattr(self, '_action_%s' % k)
- action = handler(recipe, action, value, *m.groups(),
- ingredient_block_map=ingredient_block_map,
- ingredient_map=ingredient_map)
+ kws = {'ingredient_block_map': ingredient_block_map,
+ 'ingredient_map': ingredient_map}
+ action = handler(recipe, action, value, *m.groups(), **kws)
break
# button updates
action = kwargs.get('action', action)
m = regexp.match(action)
if m != None:
handler = getattr(self, '_action_%s' % a)
- action = handler(recipe, action, *m.groups(),
- ingredient_block_map=ingredient_block_map,
- ingredient_map=ingredient_map)
+ kws = {'ingredient_block_map': ingredient_block_map,
+ 'ingredient_map': ingredient_map}
+ action = handler(recipe, action, *m.groups(), **kws)
break
return (name, recipe, action)