def removeAssociation(self, server_url, handle): with self.connection() as con: return con.execute(openid_association.delete( (openid_association.c.server_url == server_url) & (openid_association.c.handle == handle) )).rowcount > 0
def removeAssociation(self, server_url, handle): with self.connection() as con: return con.execute( openid_association.delete( (openid_association.c.server_url == server_url) & (openid_association.c.handle == handle))).rowcount > 0
def cleanupAssociations(self): with self.connection() as con: return con.execute(openid_association.delete( openid_association.c.issued + openid_association.c.lifetime < int(time()) )).rowcount
def cleanupAssociations(self): with self.connection() as con: return con.execute( openid_association.delete( openid_association.c.issued + openid_association.c.lifetime < int(time()))).rowcount