:mod:`zemfrog.mixins` ===================== .. py:module:: zemfrog.mixins Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: zemfrog.mixins.UserMixin zemfrog.mixins.RoleMixin zemfrog.mixins.PermissionMixin zemfrog.mixins.LogMixin zemfrog.mixins.RoleLinksMixin zemfrog.mixins.PermissionLinksMixin .. class:: UserMixin User model. .. attribute:: id .. attribute:: first_name .. attribute:: last_name .. attribute:: name .. attribute:: email .. attribute:: password .. attribute:: registration_date .. attribute:: confirmed .. attribute:: date_confirmed .. method:: logs(cls) .. method:: roles(cls) .. method:: get_role(self, name, silently=False) .. method:: has_role(self, name) .. method:: add_role(self, role) .. method:: delete_role(self, name) .. method:: update_role(self, name, **kwds) .. class:: RoleMixin Role user. .. attribute:: id .. attribute:: name .. attribute:: description .. method:: user_id(cls) .. method:: permissions(cls) .. method:: get_perm(self, name, silently=False) .. method:: has_perm(self, name) .. method:: add_perm(self, perm) .. method:: delete_perm(self, name) .. method:: update_perm(self, name, **kwds) .. class:: PermissionMixin Role permission. .. attribute:: id .. attribute:: name .. attribute:: description .. method:: role_id(cls) .. class:: LogMixin User activity log. .. attribute:: id .. attribute:: login_date .. attribute:: date_requested_password_reset .. attribute:: date_set_new_password .. method:: user_id(cls) .. class:: RoleLinksMixin .. attribute:: id .. method:: user_id(cls) .. method:: role_id(cls) .. class:: PermissionLinksMixin .. attribute:: id .. method:: role_id(cls) .. method:: permission_id(cls)