From 23524ccc86aeeacb49ee7771b98706c4e4a3a7de Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Fri, 24 Oct 2008 03:42:05 +0000 Subject: [PATCH] ScrapedItem cannot have a constructor that receives the adaptor_pipe. adaptor_pipe must be assigned by calling set_adaptors() from the outside (typically in a spider) --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40342 --- scrapy/trunk/scrapy/item/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scrapy/trunk/scrapy/item/models.py b/scrapy/trunk/scrapy/item/models.py index 81dfee924..771d3a9b4 100644 --- a/scrapy/trunk/scrapy/item/models.py +++ b/scrapy/trunk/scrapy/item/models.py @@ -8,10 +8,6 @@ class ScrapedItem(object): that identifies uniquely the given scraped item. """ - def __init__(self, adaptors_pipe={}): - self.set_adaptors(adaptors_pipe) - pass - def set_adaptors(self, adaptors_pipe): """ Set the adaptors to use for this item. Receives a dict of the adaptors