(self)
return jid
Get Cache Jobs Defaut 24h
Get Cache Jobs Defaut 24h
Get Cache Jobs Defaut 24h
def jobs_list(self):
        ''' Get Cache Jobs Defaut 24h '''
        url = self.__url + '/jobs/'
        headers = {'X-Auth-Token': self.__token_id}
        req = urllib2.Request(url, headers=headers)
        opener = urllib2.urlopen(req)
        content = json.loads(opener.read())
        jid = content['return'][0]
        return jid
def jobs_list ( self ) : url = self . __url + '/jobs/' headers = { 'X-Auth-Token' : self . __token_id } req = urllib2 . Request ( url , headers = headers ) opener = urllib2 . urlopen ( req ) content = json . loads ( opener . read ( ) ) jid = content [ 'return' ] [ 0 ] return jid