Subversion Repositories SmartDukaan

Rev

Rev 15282 | Rev 15285 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15282 Rev 15283
Line 641... Line 641...
641
                fetchInfo.last_action = 'disposition'
641
                fetchInfo.last_action = 'disposition'
642
                fetchInfo.last_action_time = last_disposition.created
642
                fetchInfo.last_action_time = last_disposition.created
643
            fetchInfo.retailer_id = retailer.id
643
            fetchInfo.retailer_id = retailer.id
644
            session.commit()
644
            session.commit()
645
            
645
            
-
 
646
            otherContacts = 
646
            if retailer is None:
647
            if retailer is None:
647
                resp.body = "{}"
648
                resp.body = "{}"
648
            else:
649
            else:
649
                resp.body = json.dumps(todict(getRetailerObj(retailer)), encoding='utf-8')
650
                resp.body = json.dumps(todict(getRetailerObj(retailer)), encoding='utf-8')
650
            
651
            
Line 1007... Line 1008...
1007
    
1008
    
1008
class Mock(object):
1009
class Mock(object):
1009
    pass
1010
    pass
1010
 
1011
 
1011
def main():
1012
def main():
-
 
1013
    retailerLinks = session.query(RetailerLinks).all()
1012
    print getNextCode(codesys, 'ZZ999')
1014
    for retailerLink in retailerLinks:
-
 
1015
        print retailerLink.retailer_id, retailerLink.retailer_id
-
 
1016
        isActivated(retailerLink.retailer_id)
1013
    
1017
    
1014
if __name__ == '__main__':
1018
if __name__ == '__main__':
1015
    main()
1019
    main()
1016
        
1020
        
1017
1021