#NEWLINE# def get_request_url( self , ar , * args , **kw ) : #NEWLINE# #INDENT# if ( ar . actor . __name__ == 'Main' ) : #NEWLINE# #INDENT# return self . plugin . build_plain_url ( * args , ** kw ) #NEWLINE# #UNINDENT# st = ar . get_status ( ) #NEWLINE# kw . update ( st [ 'base_params' ] ) #NEWLINE# add_user_language ( kw , ar ) #NEWLINE# if ( self . offset is not None ) : #NEWLINE# #INDENT# kw . setdefault ( ext_requests . URL_PARAM_START , ar . offset ) #NEWLINE# #UNINDENT# if ( ar . limit is not None ) : #NEWLINE# #INDENT# kw . setdefault ( ext_requests . URL_PARAM_LIMIT , ar . limit ) #NEWLINE# #UNINDENT# if ( ar . order_by is not None ) : #NEWLINE# #INDENT# sc = ar . order_by [ 0 ] #NEWLINE# if sc . startswith ( '-' ) : #NEWLINE# #INDENT# sc = sc [ 1 : ] #NEWLINE# kw . setdefault ( ext_requests . URL_PARAM_SORTDIR , 'DESC' ) #NEWLINE# #UNINDENT# kw . setdefault ( ext_requests . URL_PARAM_SORT , sc ) #NEWLINE# #UNINDENT# return self . plugin . build_plain_url ( ar . actor . app_label , ar . actor . __name__ , * args , ** kw )