Part of canonical.launchpad.components
Function | create_token | Create a random token string. |
Function | create_unique_token_for_table | Create a new unique token in a table. |
Parameters | token_length | Specifies how long you want the token. |
Generates a token and makes sure it does not already exist in the table and column specified.
Parameters | token_length | The length for the token string |
column | Database column where the token will be stored. | |
Returns | A new token string |