Module gip_common :: Class VoMapper
[hide private]
[frames] | no frames]

Class VoMapper

source code

This class maps a username to VO.

After it loads the username -> VO mapping, it can be used as a dictionary.

The map_location variable holds the location of the user-to-vo map; this defaults to vo.user_vo_map in the config file. The `parse` method re-parses the file.

Instance Methods [hide private]
 
__init__(self, cp) source code
 
parse(self)
Parse the user-to-vo map specified at `self.map_location`
source code
 
__getitem__(self, username) source code