use check_irods_files from hs_core management utils
@@ -2,13 +2,14 @@ from django.http import HttpResponse
from django.template import loader
from hs_core.views.utils import authorize, ACTION_TO_AUTHORIZE
from hs_access_control.models import PrivilegeCodes
+from hs_core.management.utils import check_irods_files
def debug_resource(request, shortkey):
""" Debug view for resource depicts output of various integrity checking scripts """
resource, _, _ = authorize(request, shortkey,
needed_permission=ACTION_TO_AUTHORIZE.VIEW_RESOURCE)
- irods_issues, irods_errors = resource.check_irods_files(log_errors=False, return_errors=True)
+ irods_issues, irods_errors = check_irods_files(resource, log_errors=False, return_errors=True)
template = loader.get_template('debug/debug_resource.html')
context = {
