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

Module root

source code

The root resource of the data center.

Classes
  ArchiveService
The root resource on the data center.
Functions
 
formatDefaultLog(timestamp, request)
returns a log line for request in DaCHS' default format.
source code
 
getLogFormatter()
returns a log formatter for this site.
source code
 
makeDynamicPage(pageClass)
returns a resource that returns a "dynamic" resource of pageClass.
source code
 
makeFaviconPNG(*args)
returns a "small" version of the logo.
source code
Variables
  root = <gavo.web.root.ArchiveService object>
  site = <nevow.appserver.NevowSite object>
  __package__ = 'gavo.web'
Function Details

formatDefaultLog(timestamp, request)

source code 

returns a log line for request in DaCHS' default format.

It doesn't include IP addresses, referrers or user agents, which means you should be fine as far as processing personal data is concerned.

The format itself should be compatible with "combined" logs.

getLogFormatter()

source code 

returns a log formatter for this site.

Right now, this just interprets [web]logger.

makeDynamicPage(pageClass)

source code 

returns a resource that returns a "dynamic" resource of pageClass.

pageClass must be a rend.Page subclass that is constructed with a request context (like ifpages.LoginPage). We want such things when the pages have some internal state (since you're not supposed to keep such things in the context any more, which I personally agree with).

The dynamic pages are directly constructed, their locateChild methods are not called (do we want to change this)?

makeFaviconPNG(*args)

source code 

returns a "small" version of the logo.

This is used mainly for SAMP logos at them moment.

Decorators:
  • @utils.memoized