Did I find the right examples for you? yes no

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

src/d/j/django-lfs-HEAD/lfs/manage/views/payment.py   django-lfs(Download)
    prices) and displays them.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
    return render_to_response(template_name, RequestContext(request, {
    This view is used as a part within the manage payment view.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_id)
 
    if form is None:
    This view is used as a part within the manage payment view.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
    criteria = []
    This is called via an AJAX request and returns JSON encoded data.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
    payment_form = PaymentMethodForm(instance=payment_method, data=request.POST, files=request.FILES)
 
    """
    try:
        payment_method = PaymentMethod.objects.get(pk=payment_method_id)
    except ObjectDoesNotExist:
        pass

src/d/j/django-lfs-0.7.7/lfs/manage/views/payment.py   django-lfs(Download)
    prices) and displays them.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
    return render_to_response(template_name, RequestContext(request, {
    This view is used as a part within the manage payment view.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_id)
 
    if form is None:
    This view is used as a part within the manage payment view.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
    criteria = []
    This is called via an AJAX request and returns JSON encoded data.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
    payment_form = PaymentMethodForm(instance=payment_method, data=request.POST, files=request.FILES)
 
    """
    try:
        payment_method = PaymentMethod.objects.get(pk=payment_method_id)
    except ObjectDoesNotExist:
        pass

src/l/f/lfs-HEAD/manage/views/payment.py   lfs(Download)
    prices) and displays them.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
    return render_to_response(template_name, RequestContext(request, {
    This view is used as a part within the manage payment view.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_id)
 
    return render_to_string(template_name, RequestContext(request, {
    This view is used as a part within the manage payment view.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
    criteria = []
    This is called via an AJAX request and returns JSON encoded data.
    """
    payment_method = PaymentMethod.objects.get(pk=payment_method_id)
    payment_form = PaymentForm(instance=payment_method, data=request.POST, files=request.FILES)
 
    """
    try:
        payment_method = PaymentMethod.objects.get(pk=payment_method_id)
    except ObjectDoesNotExist:
        pass

src/d/j/django-lfs-HEAD/lfs/customer/forms.py   django-lfs(Download)
    def clean(self):
        msg = _(u"This field is required.")
 
        payment_method_id = self.data.get("payment_method")
        payment_method = PaymentMethod.objects.get(pk=payment_method_id)
        # Check data of selected payment method
        payment_method_id = self.data.get("payment_method")
        payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
        if payment_method.type == lfs.payment.settings.PM_CREDIT_CARD:

src/d/j/django-lfs-HEAD/lfs/core/management/commands/lfs_migrate.py   django-lfs(Download)
 
        # PayPal
        paypal = PaymentMethod.objects.get(pk=3)
        paypal.module = "lfs_paypal.PayPalProcessor"
        paypal.save()

src/d/j/django-lfs-HEAD/lfs/checkout/views.py   django-lfs(Download)
    try:
        selected_payment_method_id = request.POST.get("payment_method")
        selected_payment_method = PaymentMethod.objects.get(pk=selected_payment_method_id)
    except PaymentMethod.DoesNotExist:
        selected_payment_method = lfs.payment.utils.get_selected_payment_method(request)

src/d/j/django-lfs-0.7.7/lfs/checkout/views.py   django-lfs(Download)
    try:
        selected_payment_method_id = request.POST.get("payment_method")
        selected_payment_method = PaymentMethod.objects.get(pk=selected_payment_method_id)
    except PaymentMethod.DoesNotExist:
        selected_payment_method = lfs.payment.utils.get_selected_payment_method(request)

src/d/j/django-lfs-0.7.7/lfs/checkout/forms.py   django-lfs(Download)
        # Check data of selected payment method
        payment_method_id = self.data.get("payment_method")
        payment_method = PaymentMethod.objects.get(pk=payment_method_id)
 
        if payment_method.type == lfs.payment.settings.PM_BANK:

src/l/f/lfs-HEAD/checkout/views.py   lfs(Download)
    try:
        selected_payment_method_id = request.POST.get("payment_method")
        selected_payment_method = PaymentMethod.objects.get(pk=selected_payment_method_id)
    except PaymentMethod.DoesNotExist:
        selected_payment_method = lfs.payment.utils.get_selected_payment_method(request)
    try:
        selected_payment_method_id = request.POST.get("payment_method")
        selected_payment_method = PaymentMethod.objects.get(pk=selected_payment_method_id)
    except PaymentMethod.DoesNotExist:
        selected_payment_method = lfs.payment.utils.get_selected_payment_method(request)

src/d/j/django-lfs-HEAD/lfs/checkout/tests/test_addresses.py   django-lfs(Download)
        )
 
        self.by_invoice = PaymentMethod.objects.get(pk=BY_INVOICE)
 
        address1 = Address.objects.create(
        )
 
        self.by_invoice = PaymentMethod.objects.get(pk=BY_INVOICE)
 
        address1 = Address.objects.create(

  1 | 2  Next