Esempio n. 1
0
def on_import(entries):
    phone_numbers = [e.phone for e in entries]

    config = get_sms_config(Place.get_toplevel_place())
    sms_provider = config and smslib.get_sms_provider(**config)

    message = app.config.get("DOOR2DOOR_SMS_MESSAGE",
			"Thank you for joining as member of AAP.")
    sms_provider.send_sms_async(phone_numbers, message)
Esempio n. 2
0
def on_import(entries):
    phone_numbers = [e.phone for e in entries]

    config = get_sms_config(Place.get_toplevel_place())
    sms_provider = config and smslib.get_sms_provider(**config)

    message = app.config.get("DOOR2DOOR_SMS_MESSAGE",
                             "Thank you for joining as member of AAP.")
    sms_provider.send_sms_async(phone_numbers, message)
Esempio n. 3
0
def on_import(entries):
    phone_numbers = [e.phone for e in entries]

    print Place.get_toplevel_place()
    config = get_sms_config(Place.get_toplevel_place())
    print config
    sms_provider = config and smslib.get_sms_provider(**config)

    message = "Thank you for joining as member of AAP."
    sms_provider.send_sms(phone_numbers, message)