An open API service indexing awesome lists of open source software.

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.

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.