Changed double quotes to single quotes in docstrings.
This commit is contained in:
parent
a6069d93db
commit
0c19acba78
|
@ -7,14 +7,12 @@ log = logging.getLogger(__name__)
|
|||
|
||||
|
||||
def harvest_source_delete(context, data_dict):
|
||||
"""
|
||||
Deletes an existing harvest source
|
||||
'''Deletes an existing harvest source.
|
||||
|
||||
This method just proxies the request to package_delete,
|
||||
which will delete the actual harvest type dataset and the
|
||||
HarvestSource object (via the after_delete extension point).
|
||||
|
||||
"""
|
||||
'''
|
||||
|
||||
log.info('Deleting harvest source: %r', data_dict)
|
||||
|
||||
|
|
|
@ -440,7 +440,7 @@ def harvest_sources_reindex(context, data_dict):
|
|||
|
||||
@logic.side_effect_free
|
||||
def harvest_source_reindex(context, data_dict):
|
||||
"""Reindex a single harvest source."""
|
||||
'''Reindex a single harvest source.'''
|
||||
|
||||
harvest_source_id = logic.get_or_bust(data_dict, 'id')
|
||||
defer_commit = context.get('defer_commit', False)
|
||||
|
|
|
@ -25,7 +25,8 @@ def harvest_source_id_exists(value, context):
|
|||
|
||||
|
||||
def harvest_job_exists(value, context):
|
||||
"""Check if a harvest job exists and returns the model if it does"""
|
||||
'''Check if a harvest job exists and returns the model if it does'''
|
||||
|
||||
result = HarvestJob.get(value, None)
|
||||
|
||||
if not result:
|
||||
|
@ -60,10 +61,10 @@ def _normalize_url(url):
|
|||
|
||||
|
||||
def harvest_source_url_validator(key, data, errors, context):
|
||||
"""Validate the provided harvest source URL.
|
||||
'''Validate the provided harvest source URL.
|
||||
|
||||
Checks that the URL is not already existing with the same config.
|
||||
"""
|
||||
'''
|
||||
|
||||
package = context.get("package")
|
||||
|
||||
|
|
Loading…
Reference in New Issue