This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openid.store.interface import OpenIDStore | |
from openid.association import Association | |
from pymemcache.client.base import Client | |
# use pymemcache as the memcache client lib. | |
# memcache client should have way to serializer and deserializer data to and from memcache store. So that we can put python dict in memcache | |
# pymemcache has this support if in client initialization you pass serializer and deserializer functions. | |
def json_serializer(key, value): | |
if type(value) == str: |