Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CLI #354

Merged
merged 1 commit into from
Jun 27, 2020
Merged

Improve CLI #354

merged 1 commit into from
Jun 27, 2020

Commits on Jun 27, 2020

  1. Improve CLI

    Add better help.
    
    users_create now takes attr:value pairs so any attribute of the UserModel can be set (not just identity attributes).
    
    Add new commands - add_permissions and remove_permissions.
    
    Add new command - reset_access.
    
    Change datastore.add/remove permissions to return True/False just as most other methods do.
    
    When testing it became obvious that CLIs don't issue 'requests' so that initialization done as part of @app.before_first_request wouldn't be done -
    that's how we initialized the phone_util and mail_util classes - changed those to be instantiated as part of normal Flask-Security initialization.
    
    Temporarily disable testing pony and other datastores against CLI (since pony doesn't work with permissions yet).
    
    Remove wording in CHANGES around breaking Registration - don't think that actually is a regression.
    
    closes: #345, #296
    jwag956 committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    9f0c96d View commit details
    Browse the repository at this point in the history