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
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
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