Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def index(self):
# Return a rendered template
# return render('/some/template.mako')
# or, Return a response
return defaultRedirect()
def index( self ):
# Return a rendered template
# return render('/some/template.mako')
# or, Return a response
return defaultRedirect()
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()
def index(self):
return defaultRedirect()
def index( self ):
return defaultRedirect()
def index( self ):
# Return a rendered template
# return render('/some/template.mako')
# or, Return a response
return defaultRedirect()