This is the parent class for the SQL stores, which contains the logic
common to all of the SQL stores.
This class shouldn't be used directly. Use one of its subclasses
instead, as those contain the code necessary to use a specific
database.
|
__init__(self,
conn,
associations_table=None,
nonces_table=None)
This creates a new SQLStore instance. |
source code
|
|
|
createTables(self,
*args,
**kwargs)
This method creates the database tables necessary for this store to
work. |
source code
|
|
|
|
|
blobEncode(self,
s)
Convert a str object into the necessary object for storing in the
database as a blob. |
source code
|
|
|
|
|
|
|
|
NoneType
|
|
|
|
Association or NoneType
|
getAssociation(self,
*args,
**kwargs)
Get the most recent association that has been set for this server URL
and handle. |
source code
|
|
|
txn_removeAssociation(self,
server_url,
handle)
Remove the association for the given server URL and handle, returning
whether the association existed at all. |
source code
|
|
bool or int
|
removeAssociation(self,
*args,
**kwargs)
Remove the association for the given server URL and handle, returning
whether the association existed at all. |
source code
|
|
|
txn_useNonce(self,
server_url,
timestamp,
salt)
Return whether this nonce is present, and if it is, then remove it
from the set. |
source code
|
|
bool
|
useNonce(self,
*args,
**kwargs)
Return whether this nonce is present, and if it is, then remove it
from the set. |
source code
|
|
|
|
int
|
|
|
|
int
|
|
Inherited from interface.OpenIDStore :
cleanup
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|