huskar_api/models/auth/application.py
def discard(cls, authority, user_id, application_id):
        """Deletes an application auth if it does exist.

        :param authority: ``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
        :param user_id: The id of owner.
        :param application_id: The id of application.
        """
        assert authority in Authority
        stmt = cls.__table__.delete().where(
            (cls.authority == authority.value) & (cls.user_id == user_id) &
            (cls.application_id == application_id))
        with DBSession().close_on_exit(False) as db:
            db.execute(stmt)
            cls.flush_by(authority, user_id, application_id)
Deletes an application auth if it does exist.

        :param authority: ``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
        :param user_id: The id of owner.
        :param application_id: The id of application.
        
Deletes an application auth if it does exist.
Deletes an application auth if it does exist .
def discard(cls, authority, user_id, application_id):
        assert authority in Authority
        stmt = cls.__table__.delete().where(
            (cls.authority == authority.value) & (cls.user_id == user_id) &
            (cls.application_id == application_id))
        with DBSession().close_on_exit(False) as db:
            db.execute(stmt)
            cls.flush_by(authority, user_id, application_id)
def discard ( cls , authority , user_id , application_id ) : assert authority in Authority stmt = cls . __table__ . delete ( ) . where ( ( cls . authority == authority . value ) & ( cls . user_id == user_id ) & ( cls . application_id == application_id ) ) with DBSession ( ) . close_on_exit ( False ) as db : db . execute ( stmt ) cls . flush_by ( authority , user_id , application_id )
Deletes an application auth if it does exist.
Deletes an application auth if it does exist .
"""Deletes an application auth if it does exist.

        :param authority: ``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
        :param user_id: The id of owner.
        :param application_id: The id of application.
        """
cls
authority
``AUTHORITY_READ`` or ``AUTHORITY_WRITE``
` ` AUTHORITY_READ ` ` or ` ` AUTHORITY_WRITE ` `
user_id
The id of owner.
The id of owner .
application_id
The id of application.
The id of application .