#NEWLINE# def add( self , user ) : #NEWLINE# #INDENT# if isinstance ( user , users . User ) : #NEWLINE# #INDENT# user_id = user . id #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# user_id = user #NEWLINE# #UNINDENT# self . put ( id = user_id )