scrapy/scrapy — pull request #208 by stav (2012-12-17 23:14:23+00:00)
Title: ItemLoader needs a bit of redesign

There is a bug in the current design of the ItemLoader. If you instantiate an ItemLoader with an item like {'foo': 1} and then call add_value('foo', 2) the return of load_item() will be something like: {'foo': 2}. In order fix this we add a new constructor argument called values which will also preserve backwards compatibility.