Source code for tic.web.cdp.api

from tic.core import Interface

[docs]class ICommandHandler(Interface): """ handles the execution of a Command This lives in the server and its not serializable """ command = None request = None
[docs] def execute(self,command): """ Executes the Command this must return an ICommandResult or throws CommandHandlerException """
[docs] def roll_back(self, command): """ Useful for doing undo stuff """
[docs] def commnad(self): """ Required method returns the command class """