https://github.com/vitalk/mixins
A python module that contains some useful mixins.
https://github.com/vitalk/mixins
Last synced: about 1 year ago
JSON representation
A python module that contains some useful mixins.
- Host: GitHub
- URL: https://github.com/vitalk/mixins
- Owner: vitalk
- Created: 2012-08-27T19:36:24.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-03-11T08:00:50.000Z (over 13 years ago)
- Last Synced: 2025-02-26T18:52:43.352Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mixins
A python module that contains a useful mixins. It includes user authentication
mixin and user activation mixin.
## UserMixin
This class provides simple way to add authentication to base model. All
password encryption and salting handles automatically via the 'password'
property.
It's possible to keep password empty, this is useful if you don't manage
password auth internally(maybe thought openid?). But if you try to access
the password then assertion raises.
## ActivationMixin
This class provides simple activation properties to base model.
## Copyright
Copyright © 2012 Vital Kudzelka .
This code shall be used for Good, not Evil.