This file is indexed.

/usr/share/pyshared/asrun/plugins/actions.py is in code-aster-run 1.13.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# -*- coding: utf-8 -*-

# ==============================================================================
# COPYRIGHT (C) 1991 - 2003  EDF R&D                  WWW.CODE-ASTER.ORG
# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
# (AT YOUR OPTION) ANY LATER VERSION.
#
# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
#
# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
#    1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
# ==============================================================================

"""
This module defines the default scheme.
"""
# all actions must accept an optional keyword argument print_output
# to disable totally all printing.

ACTIONS = {
    'serv' : {  # --serv .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 1,
        'default_schema' : "asrun.plugins.default.serv",
        # Returns : exit_code, output
    },
    'sendmail' : {  # --sendmail .export filename
        'export_position' : 0,
        'min_args' : 2,
        'max_args' : 2,
        'default_schema' : "asrun.plugins.default.sendmail",
        # Returns : exit_code
    },
    'info' : {  # --info .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 1,
        'default_schema' : "asrun.plugins.default.info",
        # Returns : exit_code, output
    },
    'actu' : {  # --actu .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 1,
        'default_schema' : "asrun.plugins.default.actu",
        # Returns : exit_code, output
    },
    'del' : {  # --del .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 1,
        'default_schema' : "asrun.plugins.default.stop_del",
        # Returns : exit_code
    },
    'purge_flash' : {  # --purge_flash .export job_number [job_number2 [...]]
        'export_position' : 0,
        'min_args' : 2,
        'max_args' : 999999,
        'default_schema' : "asrun.plugins.default.purge_flash",
        # Returns : exit_code
    },
    'tail' : {  # --tail .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 1,
        'default_schema' : "asrun.plugins.default.tail",
        # Returns : exit_code, output
    },
    'edit' : {  # --edit .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 1,
        'default_schema' : "asrun.plugins.default.edit",
        # Returns : exit_code
    },
    'get_results' : {   # --get_results .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 1,
        'default_schema' : "asrun.plugins.default.get_results",
        # Returns : exit_code
    },
    'get_export' : {   # --get_export .export testcase
        'export_position' : 0,
        'min_args' : 2,
        'max_args' : 2,
        'default_schema' : "asrun.plugins.default.get_export",
        # Returns : exit_code, output
    },
    'create_issue' : {   # --create_issue issue_file .export
        'export_position' : 1,
        'min_args' : 2,
        'max_args' : 2,
        'default_schema' : "asrun.plugins.default.create_issue",
        # Returns : exit_code
    },
    'insert_in_db' : {   # --insert_in_db .export
        'export_position' : 0,
        'min_args' : 1,
        'max_args' : 2,
        'default_schema' : "asrun.plugins.default.insert_in_db",
        # Returns : exit_code
    },
    'profile_modifier' : {
        # Not an action. Can not overridden by --schema option.
        # Arguments : AsterProfil object and a boolean 'on_client_side'
        # Returns : a service name, and an AsterProfil object.
        # called from profile_modifier.py
    },
    'calcul' : {
        # Not an action. Can not overridden by --schema option.
        # Argument : AsterCalcul object.
        # Returns : AsterProfil object.
        # called from calcul.py
    },
    'execute' : {
        # Not an action. Can not overridden by --schema option.
        # Argument : AsterProfil object.
        # Returns : a class derivated from MPI_INFO.
        # called from execute.py
    },
}