Beispiel #1
0
def generate_id_missionimage():
    from db import Database
    d = Database()
    i = d.get_highest_device_id(MissionImage)
    if (i == None):
        return SETTINGS.starting_id
    return i+1
Beispiel #2
0
def generate_id_textmessage():
    from db import Database
    d = Database()
    i = d.get_highest_device_id(TextMessage)
    if (i == None):
        return SETTINGS.starting_id
    return i+1
Beispiel #3
0
def generate_id_placemark():
    from db import Database
    d = Database()
    i = d.get_highest_device_id(Placemark)
    print "Här är i: "
    print i
    if (i == None):
        return SETTINGS.starting_id
    return i+1