get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / GetLeaseGranularity.py
1 from PLC.Method import Method
2 from PLC.Auth import Auth
3 from PLC.Faults import *
4 from PLC.Parameter import Parameter
5
6 class GetLeaseGranularity(Method):
7     """
8     Returns the granularity in seconds for the reservation system
9     """
10
11     roles = ['admin', 'pi', 'user', 'tech', 'node', 'anonymous']
12
13     accepts = [
14         Auth(),
15         ]
16
17     # for now only return /etc/myplc-release verbatim
18     returns = Parameter (int, "the granularity in seconds for the reservation system")
19
20     def call(self, auth):
21
22         return self.api.config.PLC_RESERVATION_GRANULARITY