def getAmountOfShops(self): """ """ cart = self.getCart() shops = {} for item in IItemManagement(cart).getItems(): shop = IShopManagement(item.getProduct()).getShop() shops[shop.UID()] = 1 return len(shops.keys())
def getAmountOfShops(self): """ """ cart = self.getCart() shops = {} for item in IItemManagement(cart).getItems(): shop = IShopManagement(item.getProduct()).getShop() shops[shop.UID()] = 1 return len(shops.keys())