コード例 #1
0
ファイル: _openid_auth.py プロジェクト: DasIch/solace
 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
ファイル: _openid_auth.py プロジェクト: tzoght/solace
 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
ファイル: _openid_auth.py プロジェクト: DasIch/solace
 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
ファイル: _openid_auth.py プロジェクト: tzoght/solace
 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