Ejemplo n.º 1
0
    def __init__(self):
        self.config = ConfigParser.RawConfigParser()
        config_file = "/path/to/bgp-ranking.conf"
        self.config.read(config_file)

        self.templates = config.get('web','templates')
        self.website_root = os.path.join(self.config.get('directories','root'),\
                                            config.get('web','root_web'))

        self.rgraph_scripts = [ 'RGraph.common.core.js',\
                                'RGraph.common.zoom.js', \
                                'RGraph.common.resizing.js',\
                                'RGraph.common.context.js',\
                                'RGraph.line.js',\
                                'RGraph.common.tooltips.js']
        self.controler = MasterControler()
Ejemplo n.º 2
0
 def reload(self):
     """
         Recompute all the ranks and return on the index
     """
     self.controler = MasterControler()
     return self.default()