Package gavo :: Package web :: Module weberrors
[frames] | no frames]

Module weberrors

source code

Default error displays for the data center and error helper code.

Everything in here must render synchronuosly.

You probably should not construct anything in this module directly but rather just raise the appropriate exceptions from svcs.

Classes
  ErrorPage
A base for error handling pages.
  NotFoundPage
  NotFoundPageWithFancyMessage
A NotFoundPage with a message that's taken from a piece of stan.
  OtherNotFoundPage
  RDNotFoundPage
  ForbiddenPage
  RedirectBase
  RedirectPage
  FoundPage
  SeeOtherPage
  AuthenticatePage
  BadMethodPage
  NotAcceptable
  ErrorDisplay
  InternalServerErrorPage
A catch-all page served when no other error page seemed responsible.
  DCExceptionHandler
The toplevel exception handler.
Functions
 
getContactEmail() source code
 
getDCErrorPage(error)
returns stuff for root.ErrorCatchingNevowSite.
source code
Variables
  errorTemplate = '<body><div style="position:fixed;left:4px;top...
  __package__ = 'gavo.web'
Variables Details

errorTemplate

Value:
'<body><div style="position:fixed;left:4px;top:4px;visibility:visible;\
overflow:visible !important;max-width:600px !important;z-index:500"><d\
iv style="border:2px solid red;width:400px !important;background:white\
">%s</div></div></body></html>'