예제 #1
0
def process_origin(mobile, message_array, origin, destination, req_time = None):
    # do we have a stored origin
    if origin != None:
        # google using the stored origin and the rest of the message
        google_it(mobile, origin, message_array[1:], req_time)
    # else:
    else:
        # save the rest of the message as the destination
        destination = message_array[1:]
        sessions.add_destination(mobile, destination)
        # Request the origin
        origin_req(mobile)
예제 #2
0
def add_dest_google(number,message, origin, destination):
    retrive_db(number)
    sessions.add_destination(number, message)
    google_it(number, origin, destination)
    return
예제 #3
0
def destination(number, destination):
    #Stuff to store the number and origin
    send_text.text(number, 'Hang in there!')
    sessions.add_destination(number, destination)
    return