コード例 #1
0
ファイル: _svr_types.py プロジェクト: vinodchitrali/pbspro
    def accept(self, ecode=0):
        """
        accept([ecode])
           Terminates hook execution and causes PBS to perform the
           associated event request action. If [ecode] argument is given,
           it will be used as the value for the SystemExit exception, else
           a value of 0 is used.

           This terminates hook execution by throwing a SystemExit exception.
        """
        _event_accept()
        _event_param_mod_disallow()
        raise SystemExit, str(ecode)
コード例 #2
0
ファイル: _svr_types.py プロジェクト: A9-William/pbspro
    def accept(self, ecode=0):
        """
        accept([ecode])
           Terminates hook execution and causes PBS to perform the
           associated event request action. If [ecode] argument is given,
           it will be used as the value for the SystemExit exception, else
           a value of 0 is used.

           This terminates hook execution by throwing a SystemExit exception.
        """
        _event_accept()
        _event_param_mod_disallow()
        raise SystemExit, str(ecode)