Skip to content

Commit

Permalink
[#1183] Add file that I forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Aug 15, 2013
1 parent 8c85e3a commit deeb6ef
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ckanext/datastore/helpers.py
@@ -0,0 +1,15 @@
import ckan.plugins.toolkit as toolkit


def datapusher_status(resource_id):
try:
return toolkit.get_action('datapusher_status')(
{}, {'resource_id': resource_id})
except toolkit.ObjectNotFound:
return {
'status': 'unknown'
}


def datapusher_enabled():
return toolkit.get_action('datapusher_enabled')({})

0 comments on commit deeb6ef

Please sign in to comment.