Docs & pep8
This commit is contained in:
parent
c7021933a0
commit
07c76b0cbf
|
@ -2,7 +2,7 @@ import logging
|
|||
import re
|
||||
import uuid
|
||||
|
||||
from sqlalchemy.sql import update,and_, bindparam
|
||||
from sqlalchemy.sql import update, bindparam
|
||||
from pylons import config
|
||||
|
||||
from ckan import plugins as p
|
||||
|
@ -11,11 +11,11 @@ from ckan.model import Session, Package, PACKAGE_NAME_MAX_LENGTH
|
|||
from ckan.logic import ValidationError, NotFound, get_action
|
||||
|
||||
from ckan.logic.schema import default_create_package_schema
|
||||
from ckan.lib.navl.validators import ignore_missing,ignore
|
||||
from ckan.lib.munge import munge_title_to_name,substitute_ascii_equivalents
|
||||
from ckan.lib.navl.validators import ignore_missing, ignore
|
||||
from ckan.lib.munge import munge_title_to_name, substitute_ascii_equivalents
|
||||
|
||||
from ckanext.harvest.model import HarvestJob, HarvestObject, HarvestGatherError, \
|
||||
HarvestObjectError
|
||||
from ckanext.harvest.model import (HarvestObject, HarvestGatherError,
|
||||
HarvestObjectError)
|
||||
|
||||
from ckan.plugins.core import SingletonPlugin, implements
|
||||
from ckanext.harvest.interfaces import IHarvester
|
||||
|
@ -32,7 +32,11 @@ def munge_tag(tag):
|
|||
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue