imports=[]):
cherrypy.request.lookup = lookup = self.get_lookup(directories, module_directory,
collection_size, imports)
imports=[]):
cherrypy.request.lookup = lookup = self.get_lookup(directories, module_directory,
collection_size, imports)
cherrypy.request.template = t = lookup.get_template(filename)
cherrypy.request.handler = MakoHandler(t, cherrypy.request.handler, content_type)
cherrypy.request.template = t = lookup.get_template(filename)
cherrypy.request.handler = MakoHandler(t, cherrypy.request.handler, content_type)
def revertStandardError():
"""Move stderr to stdout, and return the contents of the old stderr."""
def revertStandardError():
"""Move stderr to stdout, and return the contents of the old stderr."""
raise cherrypy.HTTPError(403,
"You are not authorized to access that resource")
raise cherrypy.HTTPError(403,
"You are not authorized to access that resource")
if environ.get('AUTH_TYPE') == 'Negotiate':
# Convert the krb5 principal into a krb4 username
if not user.endswith('@%s' % config.kerberos.realm):
if environ.get('AUTH_TYPE') == 'Negotiate':
# Convert the krb5 principal into a krb4 username
if not user.endswith('@%s' % config.kerberos.realm):