def get_auth_token(request):
 current_user = users.get_current_user()
 if ((current_user is None) or (current_user.user_id() is None)):
  return False
 (token_string, token_scopes) = gdata.gauth.auth_sub_string_from_url(request.url)
 if (token_string is None):
  return gdata.gauth.ae_load(('blogger' + current_user.user_id()))
 single_use_token = gdata.gauth.AuthSubToken(token_string, token_scopes)
 client = gdata.client.GDClient()
 session_token = client.upgrade_token(single_use_token)
 gdata.gauth.ae_save(session_token, ('blogger' + current_user.user_id()))
 return session_token

def get_auth_token ( request ) : current_user = users . get_current_user ( ) if ( ( current_user is None ) or ( current_user . user_id ( ) is None ) ) : return False ( token_string , token_scopes ) = gdata . gauth . auth_sub_string_from_url ( request . url ) if ( token_string is None ) : return gdata . gauth . ae_load ( ( 'blogger' + current_user . user_id ( ) ) ) single_use_token = gdata . gauth . AuthSubToken ( token_string , token_scopes ) client = gdata . client . GDClient ( ) session_token = client . upgrade_token ( single_use_token ) gdata . gauth . ae_save ( session_token , ( 'blogger' + current_user . user_id ( ) ) ) return session_token
retrieves the authsub token for the current user .