#NEWLINE# @ permission_required ( 'core.manage_shop' ) #NEWLINE# def shipping_methods( request , template_name = 'manage/shipping_methods/shipping_methods.html' ) : #NEWLINE# #INDENT# 'Returns all shipping methods as html.\n\n    This view is used as a part within the manage shipping view.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# current_id = int ( request . path . split ( '/' ) [ ( - 1 ) ] ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# current_id = '' #NEWLINE# #UNINDENT# return render_to_string ( template_name , RequestContext ( template_name , { #NEWLINE# #INDENT# 'current_id' : current_id , #NEWLINE# 'shipping_methods' : ShippingMethod . objects . all ( ) , #NEWLINE# #UNINDENT# } ) )