Subversion Repositories SmartDukaan

Rev

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

Rev 7718 Rev 7755
Line 889... Line 889...
889
    try:
889
    try:
890
        warehouse = Warehouse.query.filter_by(vendor_id = vendor_id, warehouseType = 'OURS', inventoryType = 'GOOD', billingWarehouseId = billing_warehouse_id).first()
890
        warehouse = Warehouse.query.filter_by(vendor_id = vendor_id, warehouseType = 'OURS', inventoryType = 'GOOD', billingWarehouseId = billing_warehouse_id).first()
891
        return warehouse.id
891
        return warehouse.id
892
    except Exception as e:
892
    except Exception as e:
893
        print e;
893
        print e;
894
        raise InventoryServiceException(101, 'No our warehouse found for vendorId: ' + vendor_id)
894
        raise InventoryServiceException(101, 'No our warehouse found for vendorId: ' + str(vendor_id))
895
    
895
    
896
def __send_mail(subject, message):
896
def __send_mail(subject, message):
897
    try:
897
    try:
898
        thread = threading.Thread(target=partial(mail, mail_user, mail_password, to_addresses, subject, message))
898
        thread = threading.Thread(target=partial(mail, mail_user, mail_password, to_addresses, subject, message))
899
        thread.start()
899
        thread.start()