Subversion Repositories SmartDukaan

Rev

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

Rev 5167 Rev 5185
Line 1764... Line 1764...
1764
    try:
1764
    try:
1765
        thread = threading.Thread(target=partial(mail, from_user, from_pwd, to_addresses, subject, message))
1765
        thread = threading.Thread(target=partial(mail, from_user, from_pwd, to_addresses, subject, message))
1766
        thread.start()
1766
        thread.start()
1767
    except Exception as ex:
1767
    except Exception as ex:
1768
        print ex    
1768
        print ex    
-
 
1769
 
-
 
1770
def get_shipping_locations():
-
 
1771
    shippingLocationIds = {}
-
 
1772
    warehouses = Warehouse.query.all()
-
 
1773
    for warehouse in warehouses:
-
 
1774
        if warehouse.shippingWarehouseId:
-
 
1775
            shippingLocationIds[warehouse.shippingWarehouseId] = 1
-
 
1776
    
-
 
1777
    shippingLocations = []
-
 
1778
    for shippingLocationId in shippingLocationIds:
-
 
1779
        shippingLocations.append(get_Warehouse(shippingLocationId))
-
 
1780
        
-
 
1781
    return shippingLocations
1769
1782