get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / GetPeerName.py
1 from PLC.Method import Method
2 from PLC.Parameter import Parameter
3 from PLC.Auth import Auth
4
5 from PLC.Peers import Peer, Peers
6
7 class GetPeerName (Method):
8     """
9     Returns this peer's name, as defined in the config as PLC_NAME
10     """
11
12     roles = ['admin', 'peer', 'node']
13
14     accepts = [Auth()]
15
16     returns = Peer.fields['peername']
17
18     def call (self, auth):
19         return self.api.config.PLC_NAME