Example #1
0
 def cleanup_associations(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupAssociations()
     self.message_user(request, "%d expired associations removed" % count)
Example #2
0
 def cleanup_nonces(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupNonces()
     self.message_user(request, "%d expired nonces removed" % count)
Example #3
0
 def cleanup_associations(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupAssociations()
     self.message_user(request, "%d expired associations removed" % count)
Example #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)
Example #5
0
 def cleanup_nonces(self, request, queryset):
     store = DjangoOpenIDStore()
     count = store.cleanupNonces()
     self.message_user(request, "%d expired nonces removed" % count)