(conditional_function)
return _inner
Decorator to apply to a view function that verifies if something is location
    safe based on the arguments or kwarguments. That function should return
    True or False.

    Note - for the page to show up in the menus, the function should not rely on `request`.
Decorator to apply to a view function that verifies if something is location
    safe based on the arguments or kwarguments. That function should return
    True or False.
Decorator to apply to a view function that verifies if something is location safe based on the arguments or kwarguments . That function should return True or False .
def conditionally_location_safe(conditional_function):
    """Decorator to apply to a view function that verifies if something is location
    safe based on the arguments or kwarguments. That function should return
    True or False.

    Note - for the page to show up in the menus, the function should not rely on `request`.
    """
    def _inner(view_fn):
        view_fn._conditionally_location_safe_function = conditional_function
        return view_fn
    return _inner
def conditionally_location_safe ( conditional_function ) : def _inner ( view_fn ) : view_fn . _conditionally_location_safe_function = conditional_function return view_fn return _inner