We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SSL transition - uploading data errors
![https issue upload](https://cloud.githubusercontent.com/assets/1542984/3931482/04a5d1a8-2459-11e4-8231-2692af87658c.png)

There are 2 separates problems:

[blocked] The page at 'https://data.ochadata.net/storage/upload_handle' was loaded over HTTPS, but ran insecure content from 'http://fonts.googleapis.com/css?family=Ubuntu:400,700': this content should also be loaded over HTTPS.
 upload_handle:16

The page at 'https://data.ochadata.net/dataset/new_resource/some-title' was loaded over HTTPS, but displayed insecure content from 'http://assets.okfn.org/images/logo/okf_logo_white_and_green_tiny.png': this content should also be loaded over HTTPS.
 some-title:1
The page at 'https://data.ochadata.net/dataset/new_resource/some-title' was loaded over HTTPS, but displayed insecure content from 'http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png': this content should also be loaded over HTTPS.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `ckanext-hdx_theme/ckanext/hdx_theme/plugin.py`
Content:
```
1 import ckanext.hdx_theme.licenses as hdx_licenses
2 
3 import ckan.plugins as plugins
4 import ckan.plugins.toolkit as toolkit
5 import ckan.model.package as package
6 import ckan.model.license as license
7 import pylons.config as config
8 import version
9 
10 import ckanext.hdx_theme.caching as caching
11 import ckanext.hdx_theme.auth as auth
12 
13 
14 def run_on_startup():
15     cache_on_startup = config.get('hdx.cache.onstartup', 'true')
16     if 'true' == cache_on_startup:
17         _generate_license_list()
18         caching.cached_get_group_package_stuff()
19 
20 
21 def _generate_license_list():
22     package.Package._license_register = license.LicenseRegister() 
23     package.Package._license_register.licenses = [
24                                                   license.License(hdx_licenses.LicenseCreativeCommonsIntergovernmentalOrgs()),
25                                                   license.License(license.LicenseCreativeCommonsAttribution()),
26                                                   license.License(license.LicenseCreativeCommonsAttributionShareAlike()),
27                                                   license.License(hdx_licenses.LicenseOtherPublicDomainNoRestrictions()),
28                                                   license.License(hdx_licenses.LicenseHdxMultiple()),
29                                                   license.License(hdx_licenses.LicenseHdxOther())
30                                                   ]
31 
32 class HDXThemePlugin(plugins.SingletonPlugin):
33     plugins.implements(plugins.IConfigurer)
34     plugins.implements(plugins.IRoutes, inherit=True)
35     plugins.implements(plugins.ITemplateHelpers)
36     plugins.implements(plugins.IActions)
37     plugins.implements(plugins.IAuthFunctions)
38     plugins.implements(plugins.IGroupController, inherit=True)
39     plugins.implements(plugins.IMiddleware, inherit=True)
40     
41     def update_config(self, config):
42         toolkit.add_template_directory(config, 'templates')
43         toolkit.add_public_directory(config, 'public')
44         toolkit.add_resource('fanstatic', 'hdx_theme')
45         
46 
47     def before_map(self, map):
48         map.connect('home', '/', controller='ckanext.hdx_theme.splash_page:SplashPageController', action='index')
49         map.connect('/count/dataset', controller='ckanext.hdx_theme.count:CountController', action='dataset')
50         map.connect('/count/country', controller='ckanext.hdx_theme.count:CountController', action='country')
51         map.connect('/count/source', controller='ckanext.hdx_theme.count:CountController', action='source')
52         map.connect('/user/logged_in', controller='ckanext.hdx_theme.login:LoginController', action='logged_in')
53         map.connect('/contribute', controller='ckanext.hdx_theme.login:LoginController', action='contribute')
54         
55         map.connect('/count/test', controller='ckanext.hdx_theme.count:CountController', action='test')
56         
57         map.connect('request_membership', '/organization/{org_id}/request_membership', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_membership')
58         map.connect('request_editing_rights', '/organization/{org_id}/request_editing_rights', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_editor_for_org')
59         map.connect('/organization/request_new', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_new_organization')
60         map.connect('/organization/members/{id}', controller='ckanext.hdx_theme.member_controller:HDXOrgMemberController', action='members')
61         map.connect('dataset_preselect','/dataset/preselect', controller='ckanext.hdx_theme.preselect_dsform_controller:HDXPreselectOrgController', action='preselect')
62         map.connect('/organization/member_new/{id}', controller='ckanext.hdx_theme.member_controller:HDXOrgMemberController', action='member_new')
63 
64         map.connect('/about/{page}', controller='ckanext.hdx_theme.splash_page:SplashPageController', action='about')
65 
66         map.connect('resource_edit', '/dataset/{id}/resource_edit/{resource_id}', controller='ckanext.hdx_theme.package_controller:HDXPackageController', action='resource_edit', ckan_icon='edit')
67 
68         return map
69     
70     def create(self, entity):
71         caching.invalidate_group_caches()
72 
73     def edit(self, entity):
74         caching.invalidate_group_caches()
75 
76     def get_helpers(self):
77         from ckanext.hdx_theme import helpers as hdx_helpers
78         return {
79             'is_downloadable': hdx_helpers.is_downloadable,
80             'get_facet_items_dict':hdx_helpers.get_facet_items_dict,
81             'get_last_modifier_user': hdx_helpers.get_last_modifier_user,
82             'get_filtered_params_list':hdx_helpers.get_filtered_params_list,
83             'get_last_revision_package':hdx_helpers.get_last_revision_package,
84             'get_last_modifier_user':hdx_helpers.get_last_modifier_user,
85             'get_last_revision_group':hdx_helpers.get_last_revision_group,
86             'get_group_followers':hdx_helpers.get_group_followers,
87             'get_group_members':hdx_helpers.get_group_members,
88             'markdown_extract_strip':hdx_helpers.markdown_extract_strip,
89             'render_date_from_concat_str':hdx_helpers.render_date_from_concat_str,
90             'hdx_version':hdx_helpers.hdx_version,
91             'hdx_build_nav_icon_with_message':hdx_helpers.hdx_build_nav_icon_with_message,
92             'hdx_num_of_new_related_items':hdx_helpers.hdx_num_of_new_related_items,
93             'hdx_get_extras_element':hdx_helpers.hdx_get_extras_element,
94             'hdx_get_user_info':hdx_helpers.hdx_get_user_info,
95             'hdx_linked_user':hdx_helpers.hdx_linked_user,
96             'hdx_show_singular_plural':hdx_helpers.hdx_show_singular_plural,
97             'hdx_member_roles_list':hdx_helpers.hdx_member_roles_list,
98             'hdx_organizations_available_with_roles':hdx_helpers.hdx_organizations_available_with_roles,
99             'hdx_group_followee_list':hdx_helpers.hdx_group_followee_list,
100             'hdx_remove_schema_and_domain_from_url':hdx_helpers.hdx_remove_schema_and_domain_from_url
101         }
102         
103     def get_actions(self):
104         from ckanext.hdx_theme import actions as hdx_actions
105         return {
106             'organization_list_for_user':hdx_actions.organization_list_for_user, 
107             'cached_group_list': hdx_actions.cached_group_list,
108             'hdx_basic_user_info': hdx_actions.hdx_basic_user_info,
109             'member_list': hdx_actions.member_list,
110             'hdx_get_sys_admins': hdx_actions.hdx_get_sys_admins,
111             'hdx_send_new_org_request': hdx_actions.hdx_send_new_org_request,
112             'hdx_send_editor_request_for_org': hdx_actions.hdx_send_editor_request_for_org,
113             'hdx_send_request_membership': hdx_actions.hdx_send_request_membership,
114             'hdx_user_show' : hdx_actions.hdx_user_show
115             
116         }
117     def get_auth_functions(self):
118         return {
119                 'hdx_basic_user_info': auth.hdx_basic_user_info,
120                 'group_member_create': auth.group_member_create,
121                 'hdx_send_new_org_request': auth.hdx_send_new_org_request,
122                 'hdx_send_editor_request_for_org': auth.hdx_send_editor_request_for_org,
123                 'hdx_send_request_membership': auth.hdx_send_request_membership
124                 }
125     
126     def make_middleware(self, app, config):
127         run_on_startup()
128         return app
129 
130         
131         
132 
133
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py b/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py
--- a/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py
+++ b/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py
@@ -40,6 +40,7 @@
     
     def update_config(self, config):
         toolkit.add_template_directory(config, 'templates')
+        toolkit.add_template_directory(config, 'templates_legacy')
         toolkit.add_public_directory(config, 'public')
         toolkit.add_resource('fanstatic', 'hdx_theme')

{"golden_diff": "diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py b/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py\n--- a/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py\n+++ b/ckanext-hdx_theme/ckanext/hdx_theme/plugin.py\n@@ -40,6 +40,7 @@\n     \n     def update_config(self, config):\n         toolkit.add_template_directory(config, 'templates')\n+        toolkit.add_template_directory(config, 'templates_legacy')\n         toolkit.add_public_directory(config, 'public')\n         toolkit.add_resource('fanstatic', 'hdx_theme')\n", "issue": "SSL transition - uploading data errors\n![https issue upload](https://cloud.githubusercontent.com/assets/1542984/3931482/04a5d1a8-2459-11e4-8231-2692af87658c.png)\n\nThere are 2 separates problems:\n\n[blocked] The page at 'https://data.ochadata.net/storage/upload_handle' was loaded over HTTPS, but ran insecure content from 'http://fonts.googleapis.com/css?family=Ubuntu:400,700': this content should also be loaded over HTTPS.\n upload_handle:16\n\nThe page at 'https://data.ochadata.net/dataset/new_resource/some-title' was loaded over HTTPS, but displayed insecure content from 'http://assets.okfn.org/images/logo/okf_logo_white_and_green_tiny.png': this content should also be loaded over HTTPS.\n some-title:1\nThe page at 'https://data.ochadata.net/dataset/new_resource/some-title' was loaded over HTTPS, but displayed insecure content from 'http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png': this content should also be loaded over HTTPS.\n\n", "before_files": [{"content": "import ckanext.hdx_theme.licenses as hdx_licenses\n\nimport ckan.plugins as plugins\nimport ckan.plugins.toolkit as toolkit\nimport ckan.model.package as package\nimport ckan.model.license as license\nimport pylons.config as config\nimport version\n\nimport ckanext.hdx_theme.caching as caching\nimport ckanext.hdx_theme.auth as auth\n\n\ndef run_on_startup():\n    cache_on_startup = config.get('hdx.cache.onstartup', 'true')\n    if 'true' == cache_on_startup:\n        _generate_license_list()\n        caching.cached_get_group_package_stuff()\n\n\ndef _generate_license_list():\n    package.Package._license_register = license.LicenseRegister() \n    package.Package._license_register.licenses = [\n                                                  license.License(hdx_licenses.LicenseCreativeCommonsIntergovernmentalOrgs()),\n                                                  license.License(license.LicenseCreativeCommonsAttribution()),\n                                                  license.License(license.LicenseCreativeCommonsAttributionShareAlike()),\n                                                  license.License(hdx_licenses.LicenseOtherPublicDomainNoRestrictions()),\n                                                  license.License(hdx_licenses.LicenseHdxMultiple()),\n                                                  license.License(hdx_licenses.LicenseHdxOther())\n                                                  ]\n\nclass HDXThemePlugin(plugins.SingletonPlugin):\n    plugins.implements(plugins.IConfigurer)\n    plugins.implements(plugins.IRoutes, inherit=True)\n    plugins.implements(plugins.ITemplateHelpers)\n    plugins.implements(plugins.IActions)\n    plugins.implements(plugins.IAuthFunctions)\n    plugins.implements(plugins.IGroupController, inherit=True)\n    plugins.implements(plugins.IMiddleware, inherit=True)\n    \n    def update_config(self, config):\n        toolkit.add_template_directory(config, 'templates')\n        toolkit.add_public_directory(config, 'public')\n        toolkit.add_resource('fanstatic', 'hdx_theme')\n        \n\n    def before_map(self, map):\n        map.connect('home', '/', controller='ckanext.hdx_theme.splash_page:SplashPageController', action='index')\n        map.connect('/count/dataset', controller='ckanext.hdx_theme.count:CountController', action='dataset')\n        map.connect('/count/country', controller='ckanext.hdx_theme.count:CountController', action='country')\n        map.connect('/count/source', controller='ckanext.hdx_theme.count:CountController', action='source')\n        map.connect('/user/logged_in', controller='ckanext.hdx_theme.login:LoginController', action='logged_in')\n        map.connect('/contribute', controller='ckanext.hdx_theme.login:LoginController', action='contribute')\n        \n        map.connect('/count/test', controller='ckanext.hdx_theme.count:CountController', action='test')\n        \n        map.connect('request_membership', '/organization/{org_id}/request_membership', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_membership')\n        map.connect('request_editing_rights', '/organization/{org_id}/request_editing_rights', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_editor_for_org')\n        map.connect('/organization/request_new', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_new_organization')\n        map.connect('/organization/members/{id}', controller='ckanext.hdx_theme.member_controller:HDXOrgMemberController', action='members')\n        map.connect('dataset_preselect','/dataset/preselect', controller='ckanext.hdx_theme.preselect_dsform_controller:HDXPreselectOrgController', action='preselect')\n        map.connect('/organization/member_new/{id}', controller='ckanext.hdx_theme.member_controller:HDXOrgMemberController', action='member_new')\n\n        map.connect('/about/{page}', controller='ckanext.hdx_theme.splash_page:SplashPageController', action='about')\n\n        map.connect('resource_edit', '/dataset/{id}/resource_edit/{resource_id}', controller='ckanext.hdx_theme.package_controller:HDXPackageController', action='resource_edit', ckan_icon='edit')\n\n        return map\n    \n    def create(self, entity):\n        caching.invalidate_group_caches()\n\n    def edit(self, entity):\n        caching.invalidate_group_caches()\n\n    def get_helpers(self):\n        from ckanext.hdx_theme import helpers as hdx_helpers\n        return {\n            'is_downloadable': hdx_helpers.is_downloadable,\n            'get_facet_items_dict':hdx_helpers.get_facet_items_dict,\n            'get_last_modifier_user': hdx_helpers.get_last_modifier_user,\n            'get_filtered_params_list':hdx_helpers.get_filtered_params_list,\n            'get_last_revision_package':hdx_helpers.get_last_revision_package,\n            'get_last_modifier_user':hdx_helpers.get_last_modifier_user,\n            'get_last_revision_group':hdx_helpers.get_last_revision_group,\n            'get_group_followers':hdx_helpers.get_group_followers,\n            'get_group_members':hdx_helpers.get_group_members,\n            'markdown_extract_strip':hdx_helpers.markdown_extract_strip,\n            'render_date_from_concat_str':hdx_helpers.render_date_from_concat_str,\n            'hdx_version':hdx_helpers.hdx_version,\n            'hdx_build_nav_icon_with_message':hdx_helpers.hdx_build_nav_icon_with_message,\n            'hdx_num_of_new_related_items':hdx_helpers.hdx_num_of_new_related_items,\n            'hdx_get_extras_element':hdx_helpers.hdx_get_extras_element,\n            'hdx_get_user_info':hdx_helpers.hdx_get_user_info,\n            'hdx_linked_user':hdx_helpers.hdx_linked_user,\n            'hdx_show_singular_plural':hdx_helpers.hdx_show_singular_plural,\n            'hdx_member_roles_list':hdx_helpers.hdx_member_roles_list,\n            'hdx_organizations_available_with_roles':hdx_helpers.hdx_organizations_available_with_roles,\n            'hdx_group_followee_list':hdx_helpers.hdx_group_followee_list,\n            'hdx_remove_schema_and_domain_from_url':hdx_helpers.hdx_remove_schema_and_domain_from_url\n        }\n        \n    def get_actions(self):\n        from ckanext.hdx_theme import actions as hdx_actions\n        return {\n            'organization_list_for_user':hdx_actions.organization_list_for_user, \n            'cached_group_list': hdx_actions.cached_group_list,\n            'hdx_basic_user_info': hdx_actions.hdx_basic_user_info,\n            'member_list': hdx_actions.member_list,\n            'hdx_get_sys_admins': hdx_actions.hdx_get_sys_admins,\n            'hdx_send_new_org_request': hdx_actions.hdx_send_new_org_request,\n            'hdx_send_editor_request_for_org': hdx_actions.hdx_send_editor_request_for_org,\n            'hdx_send_request_membership': hdx_actions.hdx_send_request_membership,\n            'hdx_user_show' : hdx_actions.hdx_user_show\n            \n        }\n    def get_auth_functions(self):\n        return {\n                'hdx_basic_user_info': auth.hdx_basic_user_info,\n                'group_member_create': auth.group_member_create,\n                'hdx_send_new_org_request': auth.hdx_send_new_org_request,\n                'hdx_send_editor_request_for_org': auth.hdx_send_editor_request_for_org,\n                'hdx_send_request_membership': auth.hdx_send_request_membership\n                }\n    \n    def make_middleware(self, app, config):\n        run_on_startup()\n        return app\n\n        \n        \n\n", "path": "ckanext-hdx_theme/ckanext/hdx_theme/plugin.py"}], "after_files": [{"content": "import ckanext.hdx_theme.licenses as hdx_licenses\n\nimport ckan.plugins as plugins\nimport ckan.plugins.toolkit as toolkit\nimport ckan.model.package as package\nimport ckan.model.license as license\nimport pylons.config as config\nimport version\n\nimport ckanext.hdx_theme.caching as caching\nimport ckanext.hdx_theme.auth as auth\n\n\ndef run_on_startup():\n    cache_on_startup = config.get('hdx.cache.onstartup', 'true')\n    if 'true' == cache_on_startup:\n        _generate_license_list()\n        caching.cached_get_group_package_stuff()\n\n\ndef _generate_license_list():\n    package.Package._license_register = license.LicenseRegister() \n    package.Package._license_register.licenses = [\n                                                  license.License(hdx_licenses.LicenseCreativeCommonsIntergovernmentalOrgs()),\n                                                  license.License(license.LicenseCreativeCommonsAttribution()),\n                                                  license.License(license.LicenseCreativeCommonsAttributionShareAlike()),\n                                                  license.License(hdx_licenses.LicenseOtherPublicDomainNoRestrictions()),\n                                                  license.License(hdx_licenses.LicenseHdxMultiple()),\n                                                  license.License(hdx_licenses.LicenseHdxOther())\n                                                  ]\n\nclass HDXThemePlugin(plugins.SingletonPlugin):\n    plugins.implements(plugins.IConfigurer)\n    plugins.implements(plugins.IRoutes, inherit=True)\n    plugins.implements(plugins.ITemplateHelpers)\n    plugins.implements(plugins.IActions)\n    plugins.implements(plugins.IAuthFunctions)\n    plugins.implements(plugins.IGroupController, inherit=True)\n    plugins.implements(plugins.IMiddleware, inherit=True)\n    \n    def update_config(self, config):\n        toolkit.add_template_directory(config, 'templates')\n        toolkit.add_template_directory(config, 'templates_legacy')\n        toolkit.add_public_directory(config, 'public')\n        toolkit.add_resource('fanstatic', 'hdx_theme')\n        \n\n    def before_map(self, map):\n        map.connect('home', '/', controller='ckanext.hdx_theme.splash_page:SplashPageController', action='index')\n        map.connect('/count/dataset', controller='ckanext.hdx_theme.count:CountController', action='dataset')\n        map.connect('/count/country', controller='ckanext.hdx_theme.count:CountController', action='country')\n        map.connect('/count/source', controller='ckanext.hdx_theme.count:CountController', action='source')\n        map.connect('/user/logged_in', controller='ckanext.hdx_theme.login:LoginController', action='logged_in')\n        map.connect('/contribute', controller='ckanext.hdx_theme.login:LoginController', action='contribute')\n        \n        map.connect('/count/test', controller='ckanext.hdx_theme.count:CountController', action='test')\n        \n        map.connect('request_membership', '/organization/{org_id}/request_membership', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_membership')\n        map.connect('request_editing_rights', '/organization/{org_id}/request_editing_rights', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_editor_for_org')\n        map.connect('/organization/request_new', controller='ckanext.hdx_theme.org_controller:HDXReqsOrgController', action='request_new_organization')\n        map.connect('/organization/members/{id}', controller='ckanext.hdx_theme.member_controller:HDXOrgMemberController', action='members')\n        map.connect('dataset_preselect','/dataset/preselect', controller='ckanext.hdx_theme.preselect_dsform_controller:HDXPreselectOrgController', action='preselect')\n        map.connect('/organization/member_new/{id}', controller='ckanext.hdx_theme.member_controller:HDXOrgMemberController', action='member_new')\n\n        map.connect('/about/{page}', controller='ckanext.hdx_theme.splash_page:SplashPageController', action='about')\n\n        map.connect('resource_edit', '/dataset/{id}/resource_edit/{resource_id}', controller='ckanext.hdx_theme.package_controller:HDXPackageController', action='resource_edit', ckan_icon='edit')\n\n        return map\n    \n    def create(self, entity):\n        caching.invalidate_group_caches()\n\n    def edit(self, entity):\n        caching.invalidate_group_caches()\n\n    def get_helpers(self):\n        from ckanext.hdx_theme import helpers as hdx_helpers\n        return {\n            'is_downloadable': hdx_helpers.is_downloadable,\n            'get_facet_items_dict':hdx_helpers.get_facet_items_dict,\n            'get_last_modifier_user': hdx_helpers.get_last_modifier_user,\n            'get_filtered_params_list':hdx_helpers.get_filtered_params_list,\n            'get_last_revision_package':hdx_helpers.get_last_revision_package,\n            'get_last_modifier_user':hdx_helpers.get_last_modifier_user,\n            'get_last_revision_group':hdx_helpers.get_last_revision_group,\n            'get_group_followers':hdx_helpers.get_group_followers,\n            'get_group_members':hdx_helpers.get_group_members,\n            'markdown_extract_strip':hdx_helpers.markdown_extract_strip,\n            'render_date_from_concat_str':hdx_helpers.render_date_from_concat_str,\n            'hdx_version':hdx_helpers.hdx_version,\n            'hdx_build_nav_icon_with_message':hdx_helpers.hdx_build_nav_icon_with_message,\n            'hdx_num_of_new_related_items':hdx_helpers.hdx_num_of_new_related_items,\n            'hdx_get_extras_element':hdx_helpers.hdx_get_extras_element,\n            'hdx_get_user_info':hdx_helpers.hdx_get_user_info,\n            'hdx_linked_user':hdx_helpers.hdx_linked_user,\n            'hdx_show_singular_plural':hdx_helpers.hdx_show_singular_plural,\n            'hdx_member_roles_list':hdx_helpers.hdx_member_roles_list,\n            'hdx_organizations_available_with_roles':hdx_helpers.hdx_organizations_available_with_roles,\n            'hdx_group_followee_list':hdx_helpers.hdx_group_followee_list,\n            'hdx_remove_schema_and_domain_from_url':hdx_helpers.hdx_remove_schema_and_domain_from_url\n        }\n        \n    def get_actions(self):\n        from ckanext.hdx_theme import actions as hdx_actions\n        return {\n            'organization_list_for_user':hdx_actions.organization_list_for_user, \n            'cached_group_list': hdx_actions.cached_group_list,\n            'hdx_basic_user_info': hdx_actions.hdx_basic_user_info,\n            'member_list': hdx_actions.member_list,\n            'hdx_get_sys_admins': hdx_actions.hdx_get_sys_admins,\n            'hdx_send_new_org_request': hdx_actions.hdx_send_new_org_request,\n            'hdx_send_editor_request_for_org': hdx_actions.hdx_send_editor_request_for_org,\n            'hdx_send_request_membership': hdx_actions.hdx_send_request_membership,\n            'hdx_user_show' : hdx_actions.hdx_user_show\n            \n        }\n    def get_auth_functions(self):\n        return {\n                'hdx_basic_user_info': auth.hdx_basic_user_info,\n                'group_member_create': auth.group_member_create,\n                'hdx_send_new_org_request': auth.hdx_send_new_org_request,\n                'hdx_send_editor_request_for_org': auth.hdx_send_editor_request_for_org,\n                'hdx_send_request_membership': auth.hdx_send_request_membership\n                }\n    \n    def make_middleware(self, app, config):\n        run_on_startup()\n        return app\n\n        \n        \n\n", "path": "ckanext-hdx_theme/ckanext/hdx_theme/plugin.py"}]}