Exemplo n.º 1
0
    def __init__(self, homeinfo, targetinfo, mvmtinfo, tstats, config=None):
        self.home = homeinfo
        self.target = targetinfo
        self.mvmt = mvmtinfo
        self.config = config
        self.tstats = tstats

        for x in (DES_SERVICES, DES_HTTP_SECTION):
            if x not in self.config:
                miscutils.fwdie('Error:  Missing %s in config' % x, 1)
        self.HU = http_utils.HttpUtils(self.config[DES_SERVICES],
                                       self.config[DES_HTTP_SECTION])
Exemplo n.º 2
0
    def __init__(self, homeinfo, targetinfo, mvmtinfo, tstats, config=None):
        """ initialize object """
        self.home = homeinfo
        self.target = targetinfo
        self.mvmt = mvmtinfo
        self.config = config
        self.tstats = tstats

        for reqkey in (DES_SERVICES, DES_HTTP_SECTION):
            if reqkey not in self.config:
                miscutils.fwdie('Error:  Missing %s in config' % reqkey, 1)
        self.HU = http_utils.HttpUtils(self.config[DES_SERVICES],
                                       self.config[DES_HTTP_SECTION])