def _set_user_info_cookie(email, admin, cookie_name=_COOKIE_NAME):
 cookie_value = _create_cookie_data(email, admin)
 cookie = Cookie.SimpleCookie()
 cookie[cookie_name] = cookie_value
 cookie[cookie_name]['path'] = '/'
 return cookie[cookie_name].OutputString()

def _set_user_info_cookie ( email , admin , cookie_name = _COOKIE_NAME ) : cookie_value = _create_cookie_data ( email , admin ) cookie = Cookie . SimpleCookie ( ) cookie [ cookie_name ] = cookie_value cookie [ cookie_name ] [ 'path' ] = '/' return cookie [ cookie_name ] . OutputString ( )
creates a cookie to set the user information for the requestor .