Docs & pep8
This commit is contained in:
parent
c7021933a0
commit
07c76b0cbf
|
@ -2,7 +2,7 @@ import logging
|
||||||
import re
|
import re
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from sqlalchemy.sql import update,and_, bindparam
|
from sqlalchemy.sql import update, bindparam
|
||||||
from pylons import config
|
from pylons import config
|
||||||
|
|
||||||
from ckan import plugins as p
|
from ckan import plugins as p
|
||||||
|
@ -14,8 +14,8 @@ from ckan.logic.schema import default_create_package_schema
|
||||||
from ckan.lib.navl.validators import ignore_missing, ignore
|
from ckan.lib.navl.validators import ignore_missing, ignore
|
||||||
from ckan.lib.munge import munge_title_to_name, substitute_ascii_equivalents
|
from ckan.lib.munge import munge_title_to_name, substitute_ascii_equivalents
|
||||||
|
|
||||||
from ckanext.harvest.model import HarvestJob, HarvestObject, HarvestGatherError, \
|
from ckanext.harvest.model import (HarvestObject, HarvestGatherError,
|
||||||
HarvestObjectError
|
HarvestObjectError)
|
||||||
|
|
||||||
from ckan.plugins.core import SingletonPlugin, implements
|
from ckan.plugins.core import SingletonPlugin, implements
|
||||||
from ckanext.harvest.interfaces import IHarvester
|
from ckanext.harvest.interfaces import IHarvester
|
||||||
|
@ -32,7 +32,11 @@ def munge_tag(tag):
|
||||||
|
|
||||||
class HarvesterBase(SingletonPlugin):
|
class HarvesterBase(SingletonPlugin):
|
||||||
'''
|
'''
|
||||||
Generic class for harvesters with helper functions
|
Generic base class for harvesters, providing a number of useful functions.
|
||||||
|
|
||||||
|
A harvester doesn't have to derive from this - it could just have:
|
||||||
|
|
||||||
|
implements(IHarvester)
|
||||||
'''
|
'''
|
||||||
implements(IHarvester)
|
implements(IHarvester)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue