huskar_api/models/auth/user.py
def _set_active_status(self, is_active):
        """Set value of `is_active` column to
        disable or active this user.
        """
        with DBSession().close_on_exit(False):
            self.is_active = is_active

        self.__class__.get_id_by_name.flush(self.username)
        self.__class__.get_ids_of_normal.flush()
        self.__class__.flush([self.id])
Set value of `is_active` column to
        disable or active this user.
        
Set value of `is_active` column to
disable or active this user.
Set value of ` is_active ` column to disable or active this user .
def _set_active_status(self, is_active):
        with DBSession().close_on_exit(False):
            self.is_active = is_active
        self.__class__.get_id_by_name.flush(self.username)
        self.__class__.get_ids_of_normal.flush()
        self.__class__.flush([self.id])
def _set_active_status ( self , is_active ) : with DBSession ( ) . close_on_exit ( False ) : self . is_active = is_active self . __class__ . get_id_by_name . flush ( self . username ) self . __class__ . get_ids_of_normal . flush ( ) self . __class__ . flush ( [ self . id ] )
Set value of `is_active` column to
disable or active this user.
Set value of ` is_active ` column to disable or active this user .
"""Set value of `is_active` column to
        disable or active this user.
        """
self
is_active