Archived
1
0

The difference between class and object variables

This commit is contained in:
Jip J. Dekker 2014-06-07 12:21:00 +02:00
parent b847d2d591
commit cbab2ac7a4
2 changed files with 3 additions and 3 deletions

View File

@ -22,11 +22,11 @@ class NIST(Source):
search = 'cgi/cbook.cgi?Name=%s&Units=SI&cTP=on'
ignore_list = set()
cfg = {}
def __init__(self, config={}):
Source.__init__(self, config)
self.ignore_list = set()
self.cfg = config
if 'reliability' not in self.cfg or self.cfg['reliability'] == '':
log.msg('Reliability not set for NIST', level=log.WARNING)

View File

@ -9,8 +9,6 @@ class FourmiSpider(Spider):
A spider writen for the Fourmi Project which calls upon all available sources to request and scrape data.
"""
name = "FourmiSpider"
_sources = []
synonyms = set()
def __init__(self, compound=None, selected_attributes=[".*"], *args, **kwargs):
"""
@ -18,6 +16,8 @@ class FourmiSpider(Spider):
:param compound: compound that will be searched.
:param selected_attributes: A list of regular expressions that the attributes should match.
"""
self._sources = []
self.synonyms = set()
super(FourmiSpider, self).__init__(*args, **kwargs)
self.synonyms.add(compound)
self.selected_attributes = selected_attributes