#NEWLINE# def __collect_user_creation_args( self , ask_password , is_superuser , can_create_databases , can_create_roles ) : #NEWLINE# #INDENT# creation_args = [ ] #NEWLINE# if ask_password : #NEWLINE# #INDENT# creation_args . append ( 'P' ) #NEWLINE# #UNINDENT# creation_args . append ( ( 'S' if ( not is_superuser ) else 's' ) ) #NEWLINE# if ( not is_superuser ) : #NEWLINE# #INDENT# creation_args . append ( ( 'D' if ( not can_create_databases ) else 'd' ) ) #NEWLINE# creation_args . append ( ( 'R' if ( not can_create_roles ) else 'r' ) ) #NEWLINE# #UNINDENT# return creation_args