Skip to content

Commit

Permalink
Changed config options to match CKAN guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed May 19, 2016
1 parent e91e48f commit 81339f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ckanext/userautoadd/logic/action/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
def user_create(context, data_dict):
user = ckan_user_create(context, data_dict)

org_name = config.get('ckan.userautoadd_organization_name', '')
role = config.get('ckan.userautoadd_organization_role', '')
org_name = config.get('ckan.userautoadd.organization_name', '')
role = config.get('ckan.userautoadd.organization_role', '')

try:
toolkit.get_action('organization_show')(
Expand Down
4 changes: 2 additions & 2 deletions ckanext/userautoadd/tests/logic/action/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def _apply_config_changes(cls, cfg):
plugins.add('userautoadd')
cfg['ckan.plugins'] = ' '.join(plugins)

@helpers.change_config('ckan.userautoadd_organization_name',
@helpers.change_config('ckan.userautoadd.organization_name',
'mapaction')
@helpers.change_config('ckan.userautoadd_organization_role',
@helpers.change_config('ckan.userautoadd.organization_role',
'editor')
def test_new_user_added_to_organization(self):
user = helpers.call_action(
Expand Down

0 comments on commit 81339f5

Please sign in to comment.