You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Comrad/komrade/backend/callers.py

27 lines
668 B
Python

4 years ago
import os,sys; sys.path.append(os.path.abspath(os.path.join(os.path.abspath(os.path.join(os.path.dirname(__file__),'..')),'..')))
from komrade import *
from komrade.backend import *
4 years ago
from komrade.cli import *
4 years ago
# from komrade.backend.the_telephone import *
# from komrade.backend.the_telephone import *
4 years ago
class Caller(Operator):
"""
Variant of an Operator which handles local keys and keymaking.
"""
4 years ago
def ring_ring(self,msg,**y):
4 years ago
# stop
4 years ago
return super().ring_ring(
msg,
to_whom=self.op,
4 years ago
get_resp_from=self.phone.ring_ring,
**y
4 years ago
)
4 years ago
# @hack: repurposing this for now as a narrator