Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign SubscriptStore NameLoad Index Str BinOpAdd Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return NameLoad If CompareNotEq Call NameLoad Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return NameLoad Assign NameStore Call AttributeLoad Str attr TupleLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Call AttributeLoad Str attr ListLoad Str Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad Call NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad Call AttributeLoad NameLoad attr Str attr TupleLoad Str Str
N/A N/A 
Copyright (c) 2015, Salesforce.com, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 N/A smtplib N/A re email.mime.text MIMEText email.mime.multipart MIMEMultipart alerts Alert N/A jinja2 N/A logging N/A config N/A os N/A logger N/A N/A logging getLogger alert_email EmailAlert N/A object N/A email_templates N/A N/A templateVars textTemplateFilename htmlTemplateFilename N/A None N/A N/A templateLoader N/A N/A jinja2 FileSystemLoader searchpath / N/A templateEnv N/A N/A jinja2 Environment loader templateLoader N/A text_template_file N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ textTemplateFilename N/A text_template N/A N/A templateEnv get_template text_template_file N/A text N/A N/A text_template render templateVars N/A html None N/A N/A htmlTemplateFilename None N/A N/A html_template_file N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ htmlTemplateFilename N/A html_template N/A N/A templateEnv get_template html_template_file N/A html N/A N/A html_template render templateVars N/A N/A text html N/A staticmethod __init__ N/A N/A self alert creds N/A None None N/A N/A configuration N/A N/A config Configuration config.json N/A N/A self server N/A N/A configuration get N/A email host N/A N/A self to_email N/A N/A configuration get N/A email to N/A N/A self from_email N/A self to_email N/A N/A self creds creds N/A N/A self alert alert N/A send N/A N/A self alert to_email from_email N/A None None None N/A N/A N/A alert None N/A N/A alert N/A self alert N/A N/A to_email None N/A N/A to_email N/A self to_email N/A N/A from_email None N/A N/A from_email N/A self from_email N/A N/A N/A logger debug Preparing email to %s to_email N/A N/A N/A type to_email list N/A N/A to_email N/A to_email N/A N/A self emails N/A N/A , join to_email N/A N/A self from_email from_email N/A N/A self subject N/A alert subject N/A N/A self text N/A alert message N/A N/A self html N/A alert message_html N/A msg N/A MIMEMultipart alternative N/A N/A msg N/A Subject N/A Providence Alert:  N/A self subject N/A N/A msg N/A From N/A self from_email N/A N/A msg N/A To N/A self emails N/A part1 N/A MIMEText N/A self text plain N/A N/A N/A msg attach part1 N/A N/A self html N/A N/A part2 N/A MIMEText N/A N/A N/A self html encode utf-8 html utf-8 N/A N/A N/A msg attach part2 N/A s N/A N/A smtplib SMTP N/A self server N/A safe_to_email_addresses N/A N/A email_address to_email N/A N/A break_up_email N/A N/A re match ^([\w\d\.-]+)(\+.*)?@(.*) email_address N/A N/A break_up_email None N/A N/A N/A N/A logger error Email address [%s] could not be parsed N/A str email_address N/A False N/A N/A N/A len N/A N/A break_up_email groups 3 N/A N/A N/A N/A logger error Email address [%s] did not parse correctly N/A str email_address N/A False N/A safe_to_email N/A N/A @ join N/A N/A N/A N/A break_up_email groups N/A 0 N/A N/A N/A break_up_email groups N/A 2 N/A N/A N/A safe_to_email_addresses append safe_to_email N/A N/A N/A s sendmail from_email safe_to_email_addresses N/A N/A msg as_string N/A N/A N/A logger info Email sent to [%s] with subject [%s] N/A msg N/A To N/A msg N/A Subject N/A N/A N/A s quit N/A True N/A N/A N/A N/A __name__ __main__ N/A N/A templateVars N/A title description rule github_link code Test Example 3 A simple inquiry of function. Rule test X # N/A N/A join N/A a b c N/A N/A text html N/A N/A EmailAlert email_templates templateVars templates/test_email.txt templates/test.html N/A N/A N/A N/A EmailAlert send N/A Alert message text message_html html to_email N/A N/A N/A N/A config Configuration config.json get N/A email to