2015-08-20 17:27:15 +02:00
|
|
|
from zope.interface import Interface
|
|
|
|
|
|
|
|
|
|
|
|
class IControlHandlerFactory(Interface):
|
|
|
|
def get_prompt_description(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def get_handler(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class IControlHandler(Interface):
|
2015-10-15 20:12:22 +02:00
|
|
|
def handle_line(self, line):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ICommandHandlerFactory(Interface):
|
|
|
|
def get_handler(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ICommandHandler(Interface):
|
2015-08-20 17:27:15 +02:00
|
|
|
def handle_line(self, line):
|
|
|
|
pass
|