Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/d/j/django-lfs-0.7.7/lfs/cart/views.py   django-lfs(Download)
    shop = core_utils.get_default_shop(request)
    countries = shop.shipping_countries.all()
    selected_country = shipping_utils.get_selected_shipping_country(request)
 
    # Get default shipping method, so that we have a one in any case.

src/d/j/django-lfs-HEAD/lfs/cart/views.py   django-lfs(Download)
    shop = core_utils.get_default_shop(request)
    countries = shop.shipping_countries.all()
    selected_country = shipping_utils.get_selected_shipping_country(request)
 
    # Get default shipping method, so that we have a one in any case.

src/l/f/lfs-HEAD/cart/views.py   lfs(Download)
    shop = core_utils.get_default_shop()
    countries = shop.countries.all()
    selected_country = shipping_utils.get_selected_shipping_country(request)
 
    # Get default shipping method, so that we have a one in any case.

src/l/f/lfs-HEAD/checkout/views.py   lfs(Download)
 
        # Set the addresses country to the current selected in any case.
        country = lfs.shipping.utils.get_selected_shipping_country(request)
        initial["shipping_country"] = country.id
        initial["invoice_country"] = country.id

src/d/j/django-lfs-0.7.7/lfs/criteria/models/criteria.py   django-lfs(Download)
    def is_valid(self, request, product=None):
        """Returns True if the criterion is valid.
        """
        country = shipping.utils.get_selected_shipping_country(request)
        if self.operator == IS:

src/l/f/lfs-HEAD/criteria/models/criteria.py   lfs(Download)
    def is_valid(self, request, product=None):
        """Returns True if the criterion is valid.
        """
        country = shipping.utils.get_selected_shipping_country(request)
        if self.operator == IS:

src/d/j/django-lfs-HEAD/lfs/criteria/models.py   django-lfs(Download)
    def is_valid(self):
        country = shipping.utils.get_selected_shipping_country(self.request)
        if self.operator == self.IS_SELECTED:
            return country in self.value.all()
        else:

src/l/f/lfs-HEAD/criteria/_models.py   lfs(Download)
    def is_valid(self, request, product=None):
        """Returns True if the criterion is valid.
        """
        country = shipping.utils.get_selected_shipping_country(request)
        if self.operator == IS: