1 from PLC.Method import Method
2 from PLC.Parameter import Parameter
3 from PLC.Auth import Auth
5 from PLC.Peers import Peer, Peers
7 class GetPeerName (Method):
9 Returns this peer's name, as defined in the config as PLC_NAME
12 roles = ['admin', 'peer']
16 returns = Peer.fields['peername']
18 def call (self, auth):
19 return self.api.config.PLC_NAME