portal.default.redbox.scripts.report.ingestReports.py Maven / Gradle / Ivy
class IngestReportsData:
def __init__(self):
pass
def __activate__(self, context):
self.auth = context["page"].authentication
self.errorMsg = ""
if (self.auth.is_logged_in()):
if (self.auth.is_admin()==True):
self.buildDashboard(context)
else:
self.errorMsg = "Requires Admin / Librarian / Reviewer access."
else:
self.errorMsg = "Please login."
def getErrorMsg(self):
return self.errorMsg
def buildDashboard(self, context):
self.velocityContext = context
© 2015 - 2025 Weber Informatics LLC | Privacy Policy