#NEWLINE# @ permission_required ( 'core.manage_shop' ) #NEWLINE# def manage_shipping_method( request , shipping_method_id , template_name = 'manage/shipping_methods/manage_shipping.html' ) : #NEWLINE# #INDENT# 'The main view to manage the shipping method with given id.\n\n    This view collects the various parts of the shipping form (data, criteria,\n    prices) and displays them.\n    ' #NEWLINE# shipping_method = ShippingMethod . objects . get ( pk = shipping_method_id ) #NEWLINE# return render_to_response ( template_name , RequestContext ( request , { #NEWLINE# #INDENT# 'shipping_method' : shipping_method , #NEWLINE# 'shipping_methods' : shipping_methods ( request ) , #NEWLINE# 'data' : shipping_method_data ( request , shipping_method_id ) , #NEWLINE# 'method_criteria' : shipping_method_criteria ( request , shipping_method_id ) , #NEWLINE# 'method_prices' : shipping_method_prices ( request , shipping_method_id ) , #NEWLINE# #UNINDENT# } ) )