예제 #1
0
 def cleanup_associations(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupAssociations()
     self.message_user(request, "%d expired associations removed" % count)
예제 #2
0
 def cleanup_nonces(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupNonces()
     self.message_user(request, "%d expired nonces removed" % count)
예제 #3
0
 def cleanup_associations(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupAssociations()
     self.message_user(request, "%d expired associations removed" % count)
예제 #4
0
def make_consumer(request):
    """Create an OpenID Consumer object for the given Django request."""
    # Give the OpenID library its own space in the session object.
    session = request.session.setdefault('OPENID', {})
    store = DjangoOpenIDStore()
    return Consumer(session, store)
예제 #5
0
 def cleanup_nonces(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupNonces()
     self.message_user(request, "%d expired nonces removed" % count)