2017-02-22 19:26:11 +00:00
|
|
|
from zope.interface import Interface
|
|
|
|
|
2017-02-24 01:29:56 +00:00
|
|
|
class IWormhole(Interface):
|
|
|
|
pass
|
2017-02-22 21:45:18 +00:00
|
|
|
class IBoss(Interface):
|
2017-02-22 19:26:11 +00:00
|
|
|
pass
|
2017-02-26 11:57:58 +00:00
|
|
|
class INameplate(Interface):
|
|
|
|
pass
|
2017-02-22 19:26:11 +00:00
|
|
|
class IMailbox(Interface):
|
|
|
|
pass
|
|
|
|
class ISend(Interface):
|
|
|
|
pass
|
|
|
|
class IOrder(Interface):
|
|
|
|
pass
|
|
|
|
class IKey(Interface):
|
|
|
|
pass
|
|
|
|
class IReceive(Interface):
|
|
|
|
pass
|
|
|
|
class IRendezvousConnector(Interface):
|
|
|
|
pass
|
2017-03-03 14:22:40 +00:00
|
|
|
class ILister(Interface):
|
2017-02-22 19:26:11 +00:00
|
|
|
pass
|
|
|
|
class ICode(Interface):
|
|
|
|
pass
|
2017-03-12 17:38:48 +00:00
|
|
|
class IInput(Interface):
|
|
|
|
pass
|
|
|
|
class IAllocator(Interface):
|
|
|
|
pass
|
2017-02-26 11:57:58 +00:00
|
|
|
class ITerminator(Interface):
|
|
|
|
pass
|
2017-02-22 20:51:53 +00:00
|
|
|
|
|
|
|
class ITiming(Interface):
|
|
|
|
pass
|
2017-03-04 12:07:31 +00:00
|
|
|
class ITorManager(Interface):
|
|
|
|
pass
|
2017-03-17 23:50:37 +00:00
|
|
|
class IWordlist(Interface):
|
|
|
|
def choose_words(length):
|
|
|
|
"""Randomly select LENGTH words, join them with hyphens, return the
|
|
|
|
result."""
|
|
|
|
def get_completions(prefix):
|
|
|
|
"""Return a list of all suffixes that could complete the given
|
|
|
|
prefix."""
|
2017-02-22 20:51:53 +00:00
|
|
|
|
|
|
|
class IJournal(Interface): # TODO: this needs to be public
|
|
|
|
pass
|