documentation

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2836 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-10-10 22:10:10 +00:00
parent f8c49ec432
commit 57c9f325a9

View file

@ -76,14 +76,23 @@ class Consumer (object):
@synchronized(_lock)
def config (self, key):
"""
Get config value.
"""
return self._config[key]
@synchronized(_lock)
def config_append (self, key, val):
"""
Append config value.
"""
self._config[key].append(val)
@synchronized(_lock)
def __getattr__ (self, name):
"""
Delegate access to the internal cache if possible.
"""
if hasattr(self._cache, name):
return getattr(self._cache, name)
raise AttributeError(name)
@ -139,6 +148,9 @@ class Consumer (object):
@synchronized(_lock)
def finish (self):
"""
Finish consuming URLs.
"""
self._threader.finish()
@synchronized(_lock)
@ -196,6 +208,9 @@ class Consumer (object):
@synchronized(_lock)
def log_url (self, url_data):
"""
Log given URL.
"""
self._log_url(url_data)
def _log_url (self, url_data):