def auth_allow_anonymous_access(action):
 @functools.wraps(action)
 def wrapper(context, data_dict):
  return action(context, data_dict)
 wrapper.auth_allow_anonymous_access = True
 return wrapper

def auth_allow_anonymous_access ( action ) : @ functools . wraps ( action ) def wrapper ( context , data_dict ) : return action ( context , data_dict ) wrapper . auth_allow_anonymous_access = True return wrapper
flag an auth function as not requiring a logged in user this means that check_access wont automatically raise a notauthorized exception if an authenticated user is not provided in the context .