#NEWLINE# def mail_page_user_change( user , created = False , password = '' ) : #NEWLINE# #INDENT# '\n    Send email notification to given user.\n    Used it PageUser profile creation/update.\n    ' #NEWLINE# if created : #NEWLINE# #INDENT# subject = _ ( 'CMS - your user account was created.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# subject = _ ( 'CMS - your user account was changed.' ) #NEWLINE# #UNINDENT# send_mail ( subject , 'admin/cms/mail/page_user_change.txt' , [ user . email ] , { #NEWLINE# #INDENT# 'user' : user , #NEWLINE# 'password' : ( password or ( '*' * 8 ) ) , #NEWLINE# 'created' : created , #NEWLINE# #UNINDENT# } , 'admin/cms/mail/page_user_change.html' )