Home | Trees | Indices | Help |
|
---|
|
object --+ | interface.OpenIDStore --+ | SQLStore
This is the parent class for the SQL stores, which contains the logic common to all of the SQL stores.
The table names used are determined by the class variables associations_table
and nonces_table
. To change the name of the tables
used, pass new table names into the constructor.
To create the tables with the proper schema, see the createTables
method.
This class shouldn't be used directly. Use one of its subclasses instead, as those contain the code necessary to use a specific database.
All methods other than __init__
and createTables
should be considered implementation
details.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
NoneType
|
|
||
|
|||
Association or NoneType
|
|
||
|
|||
bool or int
|
|
||
|
|||
bool
|
|
||
|
|||
int |
|
||
|
|||
int |
|
||
Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
This creates a new SQLStore instance. It requires an established database connection be given to it, and it allows overriding the default table names.
|
This method creates the database tables necessary for this store to work. It should not be called if the tables already exist. |
Convert a blob as returned by the SQL engine into a str object. str -> str |
This method creates the database tables necessary for this store to work. It should not be called if the tables already exist. |
Set the association for the server URL. Association -> NoneType |
Set the association for the server URL. Association -> NoneType
|
Get the most recent association that has been set for this server URL and handle. str -> NoneType or Association |
Get the most recent association that has been set for this server URL and handle. str -> NoneType or Association
|
Remove the association for the given server URL and handle, returning whether the association existed at all. (str, str) -> bool |
Remove the association for the given server URL and handle, returning whether the association existed at all. (str, str) -> bool
|
Return whether this nonce is present, and if it is, then remove it from the set. str -> bool |
Return whether this nonce is present, and if it is, then remove it from the set. str -> bool
|
Remove expired nonces from the store. Discards any nonce from storage that is old enough that its timestamp would not pass useNonce. This method is not called in the normal operation of the library. It provides a way for store admins to keep their storage from filling up with expired data.
|
Remove expired associations from the store. This method is not called in the normal operation of the library. It provides a way for store admins to keep their storage from filling up with expired data.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 29 15:11:28 2010 | http://epydoc.sourceforge.net |