#NEWLINE# def post( self , request , pk = None , format = None ) : #NEWLINE# #INDENT# data_basket = self . get_data_basket ( request . data , format ) #NEWLINE# self . check_basket_permission ( request , basket = data_basket ) #NEWLINE# if ( pk is not None ) : #NEWLINE# #INDENT# url_basket = self . check_basket_permission ( request , basket_pk = pk ) #NEWLINE# if ( url_basket != data_basket ) : #NEWLINE# #INDENT# raise exceptions . NotAcceptable ( ( _ ( 'Target basket inconsistent %s != %s' ) % ( format . pk , data_basket . pk ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( not request . user . is_staff ) : #NEWLINE# #INDENT# self . permission_denied ( request ) #NEWLINE# #UNINDENT# #UNINDENT# return super ( LineList , self ) . post ( request , format = format )