Пример #1
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
Пример #2
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
Пример #3
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
Пример #4
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