

def ae_save(token, token_key):
    'Stores an auth token in the App Engine datastore.\n\n  This is a convenience method for using the library with App Engine.\n  Recommended usage is to associate the auth token with the current_user.\n  If a user is signed in to the app using the App Engine users API, you\n  can use\n  gdata.gauth.ae_save(some_token, users.get_current_user().user_id())\n  If you are not using the Users API you are free to choose whatever\n  string you would like for a token_string.\n\n  Args:\n    token: an auth token object. Must be one of ClientLoginToken,\n           AuthSubToken, SecureAuthSubToken, OAuthRsaToken, or OAuthHmacToken\n           (see token_to_blob).\n    token_key: str A unique identified to be used when you want to retrieve\n               the token. If the user is signed in to App Engine using the\n               users API, I recommend using the user ID for the token_key:\n               users.get_current_user().user_id()\n  '
    import gdata.alt.app_engine
    key_name = ''.join(('gd_auth_token', key_name))
    return gdata.alt.app_engine.set_token(key_name, token_to_blob(token))

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py ae_save/VarMisuse@30/413 `token_key`->`key_name`