-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement StateManager (fixes #150) #153
Conversation
The terms "state" and "status" appear interchangeable, but common usage shows a slight bias in meanings, which I used when deciding to call this
As "state" is a fixed value while "status" is calculated, I've called this a "state property". Update: It's now a "state manager". |
|
coaster/sqlalchemy/properties.py
Outdated
""" | ||
self.states[name] = (value, validator, class_validator) | ||
|
||
def transition(self, from_, to): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to mention from_
? Would there be cases where from_
may not matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it allows a list, so I suppose that helps.
…tate transitions (W-i-P)
No description provided.