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

Input Validation #6

Closed
andrerwolff opened this issue Feb 2, 2018 · 1 comment
Closed

Input Validation #6

andrerwolff opened this issue Feb 2, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@andrerwolff
Copy link
Owner

PFT should validate all input so that the user doesn't blow something up accidentally.

*Idea: Create new module that handles all inputs. whenever user input is required, call the required function or call the function with required argument to handle that specific input case.

Something like:


from PFT import inputValidation as iv

name = iv.account_names()
def account_names()
    while True:
        name = input('enter account name:')
        if name is a valid entry:
            return name
       else:
           print('Try again')
@andrerwolff andrerwolff added this to the 0.1.0 milestone Feb 2, 2018
@andrerwolff andrerwolff added the enhancement New feature or request label Feb 2, 2018
@andrerwolff andrerwolff self-assigned this Feb 6, 2018
@andrerwolff
Copy link
Owner Author

I will finish this issue when dealing with #14. Cosed for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant