Package openid :: Package store :: Module filestore
[hide private]
[frames] | no frames]

Module filestore

source code

This module contains an OpenIDStore implementation backed by flat files.

Classes [hide private]
  FileOpenIDStore
This is a filesystem-based store for OpenID associations and nonces.
Functions [hide private]
 
_isFilenameSafe(x, y)
y in x.
source code
 
_safe64(s) source code
 
_filenameEscape(s) source code
 
_removeIfPresent(filename)
Attempt to remove a file, returning whether the file existed at the time of the call.
source code
 
_ensureDir(dir_name)
Create dir_name as a directory if it does not exist.
source code
Variables [hide private]
  _filename_allowed = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO...
  __package__ = 'openid.store'
Function Details [hide private]

_removeIfPresent(filename)

source code 

Attempt to remove a file, returning whether the file existed at the time of the call.

str -> bool

_ensureDir(dir_name)

source code 

Create dir_name as a directory if it does not exist. If it exists, make sure that it is, in fact, a directory.

Can raise OSError

str -> NoneType


Variables Details [hide private]

_filename_allowed

Value:
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.'