#NEWLINE# def create_user( self , request , access , token , user_data ) : #NEWLINE# #INDENT# identifier = self . identifier_from_data ( user_data ) #NEWLINE# username = str ( identifier ) #NEWLINE# if User . objects . filter ( username = username ) . count ( ) : #NEWLINE# #INDENT# logger . warning ( ( 'DefaultFacebookCallback.create_user: A user forwas already found, when asked to create a user for %s' % username ) ) #NEWLINE# user = User . objects . get ( username = username ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# user = User ( username = str ( identifier ) ) #NEWLINE# user . set_unusable_password ( ) #NEWLINE# user . save ( ) #NEWLINE# logger . debug ( ( 'DefaultFacebookCallback.create_user: new djangouser created for %s' % username ) ) #NEWLINE# #UNINDENT# self . create_profile ( request , access , token , user ) #NEWLINE# self . login_user ( request , user ) #NEWLINE# return user