#NEWLINE# @ access . public #NEWLINE# @ describeRoute ( Description ( 'Report the current system status.' ) . notes ( 'Must be a system administrator to call this with any mode other than basic.' ) . param ( 'mode' , 'Select details to return.  "quick" are the details that can be answered without much load on the system.  "slow" also includes some resource-intensive queries.' , required = False , enum = [ 'basic' , 'quick' , 'slow' ] ) . errorResponse ( 'You are not a system administrator.' , 403 ) ) #NEWLINE# def systemStatus( self , params ) : #NEWLINE# #INDENT# mode = params . get ( 'mode' , 'basic' ) #NEWLINE# user = self . getCurrentUser ( ) #NEWLINE# if ( mode != 'basic' ) : #NEWLINE# #INDENT# self . requireAdmin ( user ) #NEWLINE# #UNINDENT# status = system . getStatus ( mode , user ) #NEWLINE# status [ 'requestBase' ] = cherrypy . request . base . rstrip ( '/' ) #NEWLINE# return status