mirror of https://github.com/scrapy/scrapy.git
allow setting not adapted item values in ItemAdaptor
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40927
This commit is contained in:
parent
6d2a3e093b
commit
0a598ff0b1
|
|
@ -32,7 +32,7 @@ class ItemAdaptor(object):
|
|||
# for ItemAdaptor's
|
||||
fa = bounded_fa.__func__.__call__
|
||||
except KeyError:
|
||||
raise AttributeError(name)
|
||||
return setattr(self.item_instance, name, value)
|
||||
|
||||
adaptor_args = {'response': self._response}
|
||||
ovalue = fa(value, adaptor_args=adaptor_args)
|
||||
|
|
|
|||
Loading…
Reference in New Issue