Docs & pep8

This commit is contained in:
David Read 2015-12-02 16:23:54 +00:00
parent c7021933a0
commit 07c76b0cbf
1 changed files with 10 additions and 6 deletions

View File

@ -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
@ -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 import ValidationError, NotFound, get_action
from ckan.logic.schema import default_create_package_schema 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)