79 icon = None |
79 icon = None |
80 incr = 0 |
80 incr = 0 |
81 if len(args) < 6 + incr: |
81 if len(args) < 6 + incr: |
82 raise ArgumentsError( |
82 raise ArgumentsError( |
83 "Not enough arguments, {0:d} expected, got {1:d}".format( |
83 "Not enough arguments, {0:d} expected, got {1:d}".format( |
84 6 + incr, len(args))) |
84 6 + incr, len(args))) |
85 elif len(args) > 7 + incr: |
85 elif len(args) > 7 + incr: |
86 raise ArgumentsError( |
86 raise ArgumentsError( |
87 "Too many arguments, max. {0:d} expected, got {1:d}".format( |
87 "Too many arguments, max. {0:d} expected, got {1:d}".format( |
88 7 + incr, len(args))) |
88 7 + incr, len(args))) |
89 |
89 |
90 parent = args[4 + incr] |
90 parent = args[4 + incr] |
91 super(E5Action, self).__init__(parent) |
91 super(E5Action, self).__init__(parent) |
92 name = args[5 + incr] |
92 name = args[5 + incr] |
93 if name: |
93 if name: |