Package madgraph :: Package interface :: Module madevent_interface :: Class CmdExtended
[hide private]
[frames] | no frames]

Class CmdExtended

source code

              object --+        
                       |        
   extended_cmd.CheckCmd --+    
                           |    
              object --+   |    
                       |   |    
    extended_cmd.HelpCmd --+    
                           |    
              object --+   |    
                       |   |    
extended_cmd.CompleteCmd --+    
                           |    
             cmd.Cmd --+   |    
                       |   |    
   extended_cmd.BasicCmd --+    
                           |    
            extended_cmd.Cmd --+
                               |
                              CmdExtended
Known Subclasses:

Particularisation of the cmd command for MadEvent

Nested Classes [hide private]
  InvalidCmd
a class for the invalid syntax call
  ConfigurationError
Exception raised if an exception is find Those Types of error will stop nicely in the cmd interface
Instance Methods [hide private]
 
__init__(self, *arg, **opt)
Init history and line continuation
source code
 
get_history_header(self)
return the history header
source code
 
stop_on_keyboard_stop(self)
action to perform to close nicely on a keyboard interupt
source code
 
postcmd(self, stop, line)
Update the status of the run for finishing interactive command
source code
 
add_error_log_in_html(self)
If a ME run is currently running add a link in the html output
source code
 
nice_user_error(self, error, line)
If a ME run is currently running add a link in the html output
source code
 
nice_config_error(self, error, line)
If a ME run is currently running add a link in the html output
source code
 
nice_error_handling(self, error, line)
If a ME run is currently running add a link in the html output
source code

Inherited from extended_cmd.Cmd: ask, check_answer_in_input_file, check_stored_line, clean_history, correct_splitting, default, define_child_cmd_interface, do_EOF, do_display, do_exit, do_help, do_history, do_quit, do_save, emptyline, exec_cmd, import_command_file, onecmd, postloop, precmd, run_cmd, store_line, write_configuration

Inherited from extended_cmd.CheckCmd: check_history, check_save

Inherited from extended_cmd.HelpCmd: help_EOF, help_display, help_help, help_history, help_quit, help_save

Inherited from extended_cmd.CompleteCmd: complete_display, complete_history, complete_save

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from extended_cmd.BasicCmd: complete, deal_multiple_categories, getTerminalSize, preloop, print_suggestions

Inherited from cmd.Cmd: cmdloop, columnize, complete_help, completedefault, completenames, get_names, parseline, print_topics

Static Methods [hide private]

Inherited from extended_cmd.Cmd: list_completion, path_completion, split_arg, timed_input

Class Variables [hide private]
  next_possibility = {'start': []}
  debug_output = 'ME5_debug'
  error_debug = 'Please report this bug on https://bugs.launchpa...
  config_debug = 'If you need help with this issue please contac...
  keyboard_stop_msg = 'stopping all operation\n in or...

Inherited from extended_cmd.Cmd: history_header

Inherited from extended_cmd.Cmd (private): _display_opts

Inherited from cmd.Cmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *arg, **opt)
(Constructor)

source code 

Init history and line continuation

Overrides: cmd.Cmd.__init__

get_history_header(self)

source code 

return the history header

Overrides: extended_cmd.Cmd.get_history_header

stop_on_keyboard_stop(self)

source code 

action to perform to close nicely on a keyboard interupt

Overrides: extended_cmd.Cmd.stop_on_keyboard_stop

postcmd(self, stop, line)

source code 

Update the status of the run for finishing interactive command

Overrides: cmd.Cmd.postcmd

nice_user_error(self, error, line)

source code 

If a ME run is currently running add a link in the html output

Overrides: extended_cmd.Cmd.nice_user_error

nice_config_error(self, error, line)

source code 

If a ME run is currently running add a link in the html output

Overrides: extended_cmd.Cmd.nice_config_error

nice_error_handling(self, error, line)

source code 

If a ME run is currently running add a link in the html output

Overrides: extended_cmd.Cmd.nice_error_handling

Class Variable Details [hide private]

error_debug

Value:
'''Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in \'%(debug)s\'.
Please attach this file to your report.'''

config_debug

Value:
'''If you need help with this issue please contact us on https://answe\
rs.launchpad.net/madgraph5
'''

keyboard_stop_msg

Value:
'''stopping all operation
            in order to quit madevent please enter exit'''