Skip to content

Commit

Permalink
[1140] Pep8 example whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 29, 2013
1 parent ba9f605 commit 070e9dd
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 253 deletions.
3 changes: 3 additions & 0 deletions ckan/logic/action/__init__.py
Expand Up @@ -4,6 +4,7 @@
from ckan.logic import NotFound
from ckan.lib.base import _, abort


def rename_keys(dict_, key_map, reverse=False, destructive=False):
'''Returns a dict that has particular keys renamed,
according to the key_map.
Expand All @@ -24,6 +25,7 @@ def rename_keys(dict_, key_map, reverse=False, destructive=False):
del new_dict[key]
return new_dict


def get_domain_object(model, domain_object_ref):
'''For an id or name, return the corresponding domain object.
(First match returned, in order: system, package, group, auth_group, user).'''
Expand All @@ -40,6 +42,7 @@ def get_domain_object(model, domain_object_ref):
return user
raise NotFound('Domain object %r not found' % domain_object_ref)


def error_summary(error_dict):
''' Do some i18n stuff on the error_dict keys '''

Expand Down

0 comments on commit 070e9dd

Please sign in to comment.