#NEWLINE# def init_prefs( self ) : #NEWLINE# #INDENT# prefs = self . prefs [ 'api' ] #NEWLINE# if ( prefs . get ( 'url' ) is None ) : #NEWLINE# #INDENT# prefs [ 'url' ] = API_URL #NEWLINE# #UNINDENT# if ( not prefs [ 'user' ] ) : #NEWLINE# #INDENT# prefs [ 'user' ] = self . _saved_session [ 0 ] #NEWLINE# prefs [ 'pass' ] = self . _saved_session [ 1 ] #NEWLINE# #UNINDENT# return prefs