2020-09-06 06:50:23 +00:00
|
|
|
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 *
|
2020-09-11 14:35:47 +00:00
|
|
|
from komrade.cli import *
|
2020-09-06 19:59:14 +00:00
|
|
|
# from komrade.backend.the_telephone import *
|
|
|
|
|
|
|
|
# from komrade.backend.the_telephone import *
|
|
|
|
|
2020-09-06 06:50:23 +00:00
|
|
|
|
|
|
|
class Caller(Operator):
|
|
|
|
"""
|
|
|
|
Variant of an Operator which handles local keys and keymaking.
|
|
|
|
"""
|
|
|
|
|
2020-09-12 14:32:03 +00:00
|
|
|
def ring_ring(self,msg,**y):
|
2020-09-09 18:31:36 +00:00
|
|
|
# stop
|
2020-09-09 14:38:37 +00:00
|
|
|
return super().ring_ring(
|
|
|
|
msg,
|
|
|
|
to_whom=self.op,
|
2020-09-12 14:32:03 +00:00
|
|
|
get_resp_from=self.phone.ring_ring,
|
|
|
|
**y
|
2020-09-09 14:38:37 +00:00
|
|
|
)
|
2020-09-11 14:35:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# @hack: repurposing this for now as a narrator
|