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

Module ifpages

source code

Infrastructure pages.

Classes
  LoginPage
a page that logs people in or out.
  TemplatedPage
a "server-wide" template.
  StaticFile
a file from the file system, served pretty directly.
  GavoJquery
synthesises a query-gavo.js from Debian packages.
  StaticServer
is a server for various static files.
  RobotsTxt
A page combining some built-in robots.txt material with etc/robots.txt if it exists.
  ServiceUnavailable
A page to be rendered in emergencies.
  WellKnown
A handler for the .well-known hierarchy.
  CurReaders
A page returning an approximate number of clients served currently.
Functions
 
minifyJS(ctx, path)
returns javascript in path minified.
source code
 
expandTemplate(ctx, fName)
renders fName as a template on the root service.
source code
Variables
  DEBIAN_FALLBACKS = {'js/jquery-gavo.js': <gavo.web.ifpages.Gav...
  __package__ = 'gavo.web'
Function Details

minifyJS(ctx, path)

source code 

returns javascript in path minified.

You can turn off auto-minification by setting [web] jsSource to True; that's sometimes convenient while debugging the javascript.

If jsSource is false (the default), changes to javascript are only picked up on a server reload.


Variables Details

DEBIAN_FALLBACKS

Value:
{'js/jquery-gavo.js': <gavo.web.ifpages.GavoJquery object>,
 'js/jquery.flot.js': '/usr/share/javascript/jquery-flot/jquery.flot.j\
s'}