def save(self): session = TorneiraSession() if not self.id: session.add(self) session.flush()
def delete(self): session = TorneiraSession() session.delete(self) session.flush()