#NEWLINE# @ permission_required ( 'core.manage_shop' ) #NEWLINE# def shipping_method_prices( request , shipping_method_id , template_name = 'manage/shipping_methods/shipping_method_prices.html' ) : #NEWLINE# #INDENT# 'Returns the shipping method prices for the shipping method with given id.\n\n    This view is used as a part within the manage shipping view.\n    ' #NEWLINE# shipping_method = get_object_or_404 ( ShippingMethod , pk = shipping_method_id ) #NEWLINE# return render_to_string ( template_name , RequestContext ( shipping_method , { #NEWLINE# #INDENT# 'shipping_method' : shipping_method , #NEWLINE# 'prices' : shipping_method . prices . all ( ) , #NEWLINE# #UNINDENT# } ) )