2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-19 15:25:34 +00:00
Comrad/komrade/backend/callers.py

21 lines
566 B
Python
Raw Normal View History

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-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-09 14:38:37 +00:00
def ring_ring(self,msg):
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,
get_resp_from=self.phone.ring_ring
)