Skip to content
Permalink
Browse files

Merge pull request #4685 from ckan/4684-use-get_action-in-activity-ac…

…tions

[#4684] Use get_action to call activity actions
  • Loading branch information...
wardi committed Mar 14, 2019
2 parents aa1442c + 093d44e commit 809d1eed8e107a6454c43ba1dae4bd6e54c9081d
Showing with 5 additions and 5 deletions.
  1. +5 −5 ckan/logic/action/get.py
@@ -2698,7 +2698,7 @@ def package_activity_list_html(context, data_dict):
:rtype: string
'''
activity_stream = package_activity_list(context, data_dict)
activity_stream = logic.get_action('package_activity_list')(context, data_dict)
offset = int(data_dict.get('offset', 0))
extra_vars = {
'controller': 'package',
@@ -2729,7 +2729,7 @@ def group_activity_list_html(context, data_dict):
:rtype: string
'''
activity_stream = group_activity_list(context, data_dict)
activity_stream = logic.get_action('group_activity_list')(context, data_dict)
offset = int(data_dict.get('offset', 0))
extra_vars = {
'controller': 'group',
@@ -2784,8 +2784,8 @@ def recently_changed_packages_activity_list_html(context, data_dict):
:rtype: string
'''
activity_stream = recently_changed_packages_activity_list(
context, data_dict)
activity_stream = logic.get_action(
'recently_changed_packages_activity_list')(context, data_dict)
offset = int(data_dict.get('offset', 0))
extra_vars = {
'controller': 'package',
@@ -3344,7 +3344,7 @@ def dashboard_activity_list_html(context, data_dict):
:rtype: string
'''
activity_stream = dashboard_activity_list(context, data_dict)
activity_stream = logic.get_action('dashboard_activity_list')(context, data_dict)
model = context['model']
user_id = context['user']
offset = data_dict.get('offset', 0)

0 comments on commit 809d1ee

Please sign in to comment.
You can’t perform that action at this time.