Skip to content

Commit

Permalink
Import tag and vocab logic/auth functions in logic/auth/publisher mod…
Browse files Browse the repository at this point in the history
…ules
  • Loading branch information
Sean Hammond committed Feb 15, 2012
1 parent d542c87 commit 1a61d3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/logic/auth/publisher/create.py
Expand Up @@ -5,6 +5,9 @@
from ckan.authz import Authorizer
from ckan.lib.base import _

# FIXME: Which is worse, 'from module import foo' or duplicating these
# functions in this module?
from ckan.logic.auth.create import vocabulary_create, tag_create

def package_create(context, data_dict=None):
model = context['model']
Expand Down
4 changes: 4 additions & 0 deletions ckan/logic/auth/publisher/delete.py
Expand Up @@ -6,6 +6,10 @@
from ckan.authz import Authorizer
from ckan.lib.base import _

# FIXME: Which is worse, 'from module import foo' or duplicating these
# functions in this module?
from ckan.logic.auth.delete import vocabulary_delete, tag_delete

def package_delete(context, data_dict):
"""
Delete a package permission. User must be in at least one group that that
Expand Down
4 changes: 4 additions & 0 deletions ckan/logic/auth/publisher/update.py
Expand Up @@ -5,6 +5,10 @@
from ckan.authz import Authorizer
from ckan.lib.base import _

# FIXME: Which is worse, 'from module import foo' or duplicating these
# functions in this module?
from ckan.logic.auth.update import vocabulary_update

def make_latest_pending_package_active(context, data_dict):
return package_update(context, data_dict)

Expand Down

0 comments on commit 1a61d3e

Please sign in to comment.