def updatePlace(self, newPlace): with getSession() as session: place = Place.updateFormDict(session, newPlace) session.commit() return place.id
def createPlace(self, newPlace): with getSession() as session: place = Place.insertFormDict(session, newPlace) session.commit() return place.ID