2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-01 21:40:32 +00:00
Comrad/komrade/backend/callers.py
quadrismegistus 8ac47cf476 updates
2020-09-09 19:31:36 +01:00

21 lines
566 B
Python

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 *
# from komrade.backend.the_telephone import *
# from komrade.backend.the_telephone import *
class Caller(Operator):
"""
Variant of an Operator which handles local keys and keymaking.
"""
def ring_ring(self,msg):
# stop
return super().ring_ring(
msg,
to_whom=self.op,
get_resp_from=self.phone.ring_ring
)