#NEWLINE# def login_url( next_kobocat_url = False , next_url = False ) : #NEWLINE# #INDENT# if url : #NEWLINE# #INDENT# url_param = ( url + '/accounts/login/' ) #NEWLINE# if next_kobocat_url : #NEWLINE# #INDENT# next_url = ( '/kobocat%s' % url_param ) #NEWLINE# #UNINDENT# if next_url : #NEWLINE# #INDENT# url_param += ( '?next=%s' % next_url ) #NEWLINE# #UNINDENT# return url_param