Beispiel #1
0
def execute_query1():
    print 'inside execute query'
    zn_nocache = ZnApi('universal', 'qa', use_cache=False)
    date1 ='2015-05-19'
    print date1
    snapshot_id = zn_nocache.snapshot_id(date1, 'EOD')
    select_fields = ['SOURCE','SUM("MTM")']
    qzt_qa1 = zn_nocache.query(snapshot_id, select_fields)
    return qzt_qa1
Beispiel #2
0
 def val(self):
     zn_nocache = ZnApi('universal', 'qa', use_cache=False)
     date1 = self.Cobdate()
     # date1 = '2014-08-14'
     print date1
     snapshot_id = zn_nocache.snapshot_id(date1, 'EOD')
     select_fields = ['SOURCE','SUM("MTM")']
     qzt_qa1 = zn_nocache.query(snapshot_id, select_fields)
     return qzt_qa1
Beispiel #3
0
 def CobDates(self):
     zn = ZnApi('Universal', 'QA')
     return zn.cob_dates()
Beispiel #4
0
 def Zn_Entitled_Domains(self):
     en_domains = ZnApi.entitled_domains('UAT')
     return en_domains
Beispiel #5
0
 def Zn_Domains(self):
     domains = ZnApi.domains('UAT')
     return domains
Beispiel #6
0
 def CobDates(self):
     zn = ZnApi('Universal', 'QA')
    
     return sorted(list(zn.cob_dates()),reverse=True)