gavo.svcs.vanity module

Parsing and maintaining URL shortcuts.

exception gavo.svcs.vanity.VanityLineError(msg, lineNo, src)[source]

Bases: Error

parse error in vanity file.

gavo.svcs.vanity.getVanityMap()[source]

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).