How to use the dirac.lib.webBase.defaultRedirect function in DIRAC

To help you get started, we’ve selected a few DIRAC examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DIRACGrid / -obsolete-DIRACWeb / dirac / controllers / systems / monitoring.py View on Github external
def index(self):
    # Return a rendered template
    #   return render('/some/template.mako')
    # or, Return a response
    return defaultRedirect()
github DIRACGrid / -obsolete-DIRACWeb / dirac / controllers / systems / activitiesMonitoring.py View on Github external
def index( self ):
    # Return a rendered template
    #   return render('/some/template.mako')
    # or, Return a response
    return defaultRedirect()
github DIRACGrid / -obsolete-DIRACWeb / dirac / controllers / web / userdata.py View on Github external
redDict[ key ] = refDict[ key ]
        if 'id' in refDict:
          redDict[ 'id' ] = refDict[ 'id' ]
        else:
          redDict[ 'id' ] = None
        if 'controller' in redDict and 'action' in redDict and \
           redDict[ 'controller' ] == 'template' and \
           redDict[ 'action' ] == 'view':
          redDict = False
    if requestedValue in validValues:
      request.environ[ 'pylons.routes_dict' ][ propKey ] = requestedValue
    else:
      gLogger.info( "Requested change to %s invalid %s" % ( requestedValue, validValues ) )
    if redDict:
      return redirect_to( **redDict )
    return defaultRedirect()
github DIRACGrid / -obsolete-DIRACWeb / dirac / controllers / systems / accountingPlots.py View on Github external
def index( self ):
    # Return a rendered template
    #   return render('/some/template.mako')
    # or, Return a response
    return defaultRedirect()