Package gavo :: Package svcs :: Module vanity
[frames] | no frames]

Module vanity

source code

Parsing and maintaining URL shortcuts.

Classes
  VanityLineError
parse error in vanity file.
Functions
 
getVanityMap()
returns "the" vanity map on this data center.
source code
Variables
  BUILTIN_VANITY = '\n\t__system__/products/p/get getproduct\n\t...
  __package__ = 'gavo.svcs'
Function Details

getVanityMap()

source code 

returns "the" vanity map on this data center.

It consists of built-in vanity (without which things like product delivery would actually break) and things read from etc/vanitynames.txt.

The input file format is documented in the DaCHS tutorial (The Vanity Map).


Variables Details

BUILTIN_VANITY

Value:
'''
\t__system__/products/p/get getproduct
\t__system__/products/p/dlasync datalinkuws
\t__system__/services/registry/pubreg.xml oai.xml
\t__system__/services/overview/external odoc
\t__system__/dc_tables/show/tablenote tablenote
\t__system__/dc_tables/show/tableinfo tableinfo
\t__system__/services/overview/admin seffe
...