コード例 #1
0
ファイル: interface.py プロジェクト: dev-edo/TextTravel
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
ファイル: inf_funcs.py プロジェクト: dev-edo/TextTravel
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