Package horizons :: Package command :: Class Command
[hide private]
[frames] | no frames]

Class Command

source code

Base class for every Command.

Instance Methods [hide private]
 
execute(self, session, local=False)
Execute command.
source code
Class Methods [hide private]
 
allow_network(cls, klass)
NOTE: this is a security related method and may lead to execution of arbritary code if used in a wrong way see documentation inside horizons.network.packets.SafeUnpickler
source code
 
get_all_commands(cls) source code
Class Variables [hide private]
  log = logging.getLogger("command")
Method Details [hide private]

execute(self, session, local=False)

source code 

Execute command.

Parameters:
  • session - Execute command on this session's manager.
  • local - Execute the command only locally (only used in multiplayer manager)
Returns:
Propagated return value of manager's execute function.