I got it fixed .... changed super(BaseShipper, self).__init__(self) to super(BaseShipper, self).__init__() in tiered and tieredquantity models.py at line number 28
On Jun 22, 8:29 pm, Chris Moffitt <[email protected]> wrote: > Which version of Satchmo and Django are you using? > > -Chris > > On Mon, Jun 22, 2009 at 10:17 AM, Rahul <[email protected]> wrote: > > > when i try to use the tiered shipping module in my store, i get the > > following error > > > TypeError at /shop/checkout/dummy/ > > > object.__init__() takes no parameters > > > Request Method: GET > > Request URL: http://127.0.0.1:8000/shop/checkout/dummy/ > > Exception Type: TypeError > > Exception Value: > > > object.__init__() takes no parameters > > > Exception Location: ../../apps/shipping/modules/tiered/models.py in > > __init__, line 28 > > > Traceback: > > File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ > > base.py" in get_response > > 92. response = callback(request, *callback_args, > > **callback_kwargs) > > File "/usr/local/lib/python2.6/dist-packages/django/views/decorators/ > > cache.py" in _wrapped_view_func > > 44. response = view_func(request, *args, **kwargs) > > File "../../apps/payment/modules/dummy/views.py" in pay_ship_info > > 10. return payship.credit_pay_ship_info(request, dummy) > > File "../../apps/payment/views/payship.py" in credit_pay_ship_info > > 141. return base_pay_ship_info(request, payment_module, > > credit_pay_ship_process_form, template) > > File "../../apps/payment/views/payship.py" in base_pay_ship_info > > 132. results = form_handler(request, contact, working_cart, > > payment_module) > > File "../../apps/payment/views/payship.py" in > > credit_pay_ship_process_form > > 79. form = _get_form(request, payment_module, *args, > > **kwargs) > > File "../../apps/payment/views/payship.py" in _get_form > > 65. form = formclass(request, payment_module, *args, > > **kwargs) > > File "../../apps/payment/forms.py" in __init__ > > 226. super(CreditPayShipForm, self).__init__(request, > > paymentmodule, *args, **kwargs) > > File "../../apps/payment/forms.py" in __init__ > > 178. shipping_choices, shipping_dict = _get_shipping_choices > > (request, paymentmodule, self.tempCart, self.tempContact, > > default_view_tax=default_view_tax) > > File "../../apps/payment/forms.py" in _get_shipping_choices > > 40. methods = shipping_methods() > > File "../../apps/shipping/config.py" in shipping_methods > > 49. methods.extend(module.get_methods()) > > File "../../apps/shipping/modules/tiered/__init__.py" in get_methods > > 7. return [Shipper(carrier) for carrier in Carrier.objects.filter > > (active=True).order_by('ordering')] > > File "../../apps/shipping/modules/tiered/models.py" in __init__ > > 28. super(BaseShipper, self).__init__(self) > > > Exception Type: TypeError at /shop/checkout/dummy/ > > Exception Value: object.__init__() takes no parameters > > > i have entered the carriers in database as well. > > Can anyone help me in this regard ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
