def authentication(function_to_decorate):
    @wraps(function_to_decorate)
    def decorated_function(*args, **kwargs):
        """ """
        if g.my is None:
            abort(401)
        status = g.my.get('status', None)
        if status is None or status == NOTACTIVATED:
            abort(401)
        return function_to_decorate(*args, **kwargs)
    return decorated_function
Increments the version number
dataset/ETHPy150Open Opentaste/bombolone/bombolone/decorators.py/authentication--crossover with--dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py/increment_version