3 from PLC.Method import Method
4 from PLC.Auth import Auth
5 from PLC.Faults import *
6 from PLC.Parameter import Parameter
8 class GetLeaseGranularity(Method):
10 Returns the granularity in seconds for the reservation system
13 roles = ['admin', 'pi', 'user', 'tech', 'node', 'anonymous']
19 # for now only return /etc/myplc-release verbatim
20 returns = Parameter (int, "the granularity in seconds for the reservation system")
24 return self.api.config.PLC_RESERVATION_GRANULARITY