from livesettings.functions import config_choice_values
from satchmo_utils import load_once

load_once('canada_post_dp_shipping', 'canada_post_dp_shipping')


def get_methods():
    import shipper
    return [
        shipper.Shipper(service_type=value) for value in config_choice_values(
            'canada_post_dp_shipping', 'SHIPPING_CHOICES')
    ]
Beispiel #2
0
from satchmo_utils import load_once

from .models import Carrier, Shipper

load_once('tiered', 'shipping.modules.tiered')


def get_methods():
    return [
        Shipper(carrier)
        for carrier in Carrier.objects.filter(active=True).order_by('ordering')
    ]
Beispiel #3
0
from livesettings.functions import config_choice_values
from satchmo_utils import load_once
import shipper

load_once('canada_post_dp_shipping', 'canada_post_dp_shipping')

def get_methods():
    return [shipper.Shipper(service_type=value)
            for value in config_choice_values('canada_post_dp_shipping',
                                              'SHIPPING_CHOICES')]

Beispiel #4
0
from models import Carrier, Shipper
from satchmo_utils import load_once

load_once('productshipping', 'shipping.modules.productshipping')

def get_methods():
    return [Shipper(carrier) for carrier in Carrier.objects.filter(active=True).order_by('ordering')]
Beispiel #5
0
# -*- coding: utf-8 -*-
from shipper import Shipper
from satchmo_utils import load_once

load_once('satchmo_emsrus', 'satchmo_emsrus')
def get_methods():
    return [Shipper()]
Beispiel #6
0
Datei: __init__.py Projekt: 34/T
from shipping.modules.tieredweight.models import Carrier, Shipper
from satchmo_utils import load_once

load_once('tiered', 'shipping.modules.tieredweight')

def get_methods():
    return [Shipper(carrier) for carrier in Carrier.objects.filter(active=True)]
from nogroth.models import Carrier, Shipper
from satchmo_utils import load_once

load_once('nogroth', 'nogroth')

def get_methods():
    return [Shipper(carrier) for carrier in Carrier.objects.filter(active=True)]