Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/t/stormpath-flask-HEAD/flask_stormpath/decorators.py   stormpath-flask(Download)
            # If the user authenticated, and the all flag is set, we need to
            # see if the user is a member of *ALL* groups.
            if all and not current_user.has_groups(groups):
                return current_app.login_manager.unauthorized()
 
            # If the all flag is NOT set, we need to make sure the user is a
            # member of at least one group.
            elif not current_user.has_groups(groups, all=False):

src/f/l/Flask-Stormpath-0.1.0/flask_stormpath.py   Flask-Stormpath(Download)
                return current_app.login_manager.unauthorized()
 
            if all and not current_user.has_groups(groups):
                return current_app.login_manager.unauthorized()
            elif not current_user.has_groups(groups, all=False):