Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.util.moinoid Namespace Reference

Classes

class  MoinOpenIDStore

Functions

def log
def strbase64
def _cleanup_nonces

Variables

tuple logging = log.getLogger(__name__)

Detailed Description

    MoinMoin - OpenID utils

    @copyright: 2006, 2007 Johannes Berg <johannes@sipsolutions.net>
    @license: GNU GPL, see COPYING for details.

Function Documentation

def MoinMoin.util.moinoid._cleanup_nonces (   request) [private]

Definition at line 33 of file moinoid.py.

00033 
00034 def _cleanup_nonces(request):
00035     cachelist = caching.get_cache_list(request, 'openid-nonce', 'farm')
00036     # really openid should have a method to check this...
00037     texpired = time.time() - nonce.SKEW
00038     for name in cachelist:
00039         entry = caching.CacheEntry(request, 'openid-nonce', name,
00040                                    scope='farm', use_pickle=False)
00041         try:
00042             timestamp = int(entry.content())
00043             if timestamp < texpired:
00044                 entry.remove()
00045         except caching.CacheError:
00046             pass
00047 

def MoinMoin.util.moinoid.log (   msg,
  level = 0 
)

Definition at line 23 of file moinoid.py.

00023 
00024 def log(msg, level=0):
00025     logging.log(level, msg)
00026 
00027 oidutil.log = log

Definition at line 28 of file moinoid.py.

00028 
00029 def strbase64(value):
00030     from base64 import encodestring
00031     return encodestring(str(value)).replace('\n', '')
00032 

Here is the caller graph for this function:


Variable Documentation

Definition at line 20 of file moinoid.py.