def error_page(request, message):
 if (not test_user_authenticated(request)):
  return login(request, expired=True)
 t = get_template('error_page.tmpl')
 message = message.replace('<Fault 1: "<class \'cobbler.cexceptions.CX\'>:\'', 'Remote exception: ')
 message = message.replace('\'">', '')
 html = t.render(RequestContext(request, {'version': remote.extended_version(request.session['token'])['version'], 'message': message, 'username': username}))
 return HttpResponse(html)

def error_page ( request , message ) : if ( not test_user_authenticated ( request ) ) : return login ( request , expired = True ) t = get_template ( 'error_page.tmpl' ) message = message . replace ( '<Fault 1: "<class \'cobbler.cexceptions.CX\'>:\'' , 'Remote exception: ' ) message = message . replace ( '\'">' , '' ) html = t . render ( RequestContext ( request , { 'version' : remote . extended_version ( request . session [ 'token' ] ) [ 'version' ] , 'message' : message , 'username' : username } ) ) return HttpResponse ( html )
this page is used to explain error messages to the user .