|
__init__(self,
to_control,
motherinstance,
*args,
**opts)
to_control is a list of ('KEY': 'Choose the shower/hadronization
program') |
source code
|
|
|
check_consistency(self,
key,
value)
check the consistency of the new flag with the old ones |
source code
|
|
|
check_consistency_with_all(self,
key,
value) |
source code
|
|
|
check_value(self,
key,
value)
return True/False if the value is a correct value to be set by the
USER. |
source code
|
|
|
color_for_value(self,
key,
switch_value,
consistency=True) |
source code
|
|
|
create_question(self,
help_text=True)
create the question with correct formatting |
source code
|
|
|
default(self,
line,
raise_error=False)
Default action if line is not recognized |
source code
|
|
|
default_switch_for(self,
key)
use this if they are no dedicated function for such key |
source code
|
|
|
|
|
get_allowed(self,
key)
return the list of possible value for key |
source code
|
|
|
get_cardcmd(self)
return the list of command that need to be run to have a consistent
set of cards with the switch value choosen |
source code
|
|
|
is_case_sensitive(self,
key)
check if a key is case sensitive |
source code
|
|
|
onecmd(self,
line,
**opt)
ensure to rewrite the function if a call is done directly |
source code
|
|
|
postcmd(self,
stop,
line)
Hook method executed just after a command dispatch is finished. |
source code
|
|
|
|
|
print_options(self,
key,
keep_default=False) |
source code
|
|
|
question_formatting(self,
nb_col=80,
ldescription=0,
lswitch=0,
lname=0,
ladd_info=0,
lpotential_switch=0,
lnb_key=0,
key=None)
should return four lines:
1. |
source code
|
|
|
|
|
set_all_off(self)
set all valid parameter to OFF --call before special keyword-- |
source code
|
|
|
|
|
set_switch(self,
key,
value,
user=True)
change a switch to a given value |
source code
|
|
|
|
Inherited from SmartQuestion :
__call__ ,
cmdloop ,
complete_help ,
completedefault ,
completenames ,
emptyline ,
get_names ,
preloop ,
reask
Inherited from BasicCmd :
complete ,
deal_multiple_categories ,
getTerminalSize ,
print_suggestions ,
set_readline_completion_display_matches_hook
Inherited from OriginalCmd :
columnize ,
parseline ,
postloop ,
precmd ,
print_topics
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|