Skip to content

Commit

Permalink
[#654] Import asbool from paste.deploy.converters instead of ckan.lib…
Browse files Browse the repository at this point in the history
….helpers
  • Loading branch information
johnglover committed Mar 20, 2013
1 parent b750d3c commit afef1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/create.py
@@ -1,9 +1,9 @@
import logging
from pylons import config
from pylons.i18n import _
from paste.deploy.converters import asbool

import ckan.new_authz as new_authz
import ckan.lib.helpers as h
import ckan.lib.plugins as lib_plugins
import ckan.logic as logic
import ckan.rating as ratings
Expand Down Expand Up @@ -903,7 +903,7 @@ def activity_create(context, activity_dict, ignore_auth=False):
:rtype: dictionary
'''
if not h.asbool(config.get('ckan.activity_streams_enabled', 'true')):
if not asbool(config.get('ckan.activity_streams_enabled', 'true')):
return

model = context['model']
Expand Down

0 comments on commit afef1b1

Please sign in to comment.