(form, archive, user_id, trigger_signals)
ARCHIVE_FORM system action

        This method is not meant to be called directly. It is called
        when an ARCHIVE_FORM system action is submitted.

        :param form: form to be un/archived.
        :param archive: Boolean value. Archive if true else unarchive.
        :param user_id: id of user performing the action.
ARCHIVE_FORM system action
ARCHIVE_FORM system action
def _do_archive(form, archive, user_id, trigger_signals):
        """ARCHIVE_FORM system action

        This method is not meant to be called directly. It is called
        when an ARCHIVE_FORM system action is submitted.

        :param form: form to be un/archived.
        :param archive: Boolean value. Archive if true else unarchive.
        :param user_id: id of user performing the action.
        """
        unfinished = FormAccessors._unfinished_archive
        with unfinished(form, archive, user_id, trigger_signals) as archive_stub:
            db = FormAccessors(form.domain).db_accessor
            db.set_archived_state(form, archive, user_id)
            archive_stub.archive_history_updated()
def _do_archive ( form , archive , user_id , trigger_signals ) : unfinished = FormAccessors . _unfinished_archive with unfinished ( form , archive , user_id , trigger_signals ) as archive_stub : db = FormAccessors ( form . domain ) . db_accessor db . set_archived_state ( form , archive , user_id ) archive_stub . archive_history_updated ( )