3 from PLC.Method import Method
4 from PLC.Auth import Auth
5 from PLC.Faults import *
6 from PLC.Parameter import Parameter
7 from PLC.Leases import Lease
9 class GetLeaseGranularity(Method):
11 Returns the granularity in seconds for the reservation system
14 roles = ['admin', 'pi', 'user', 'tech', 'node', 'anonymous']
20 # for now only return /etc/myplc-release verbatim
21 returns = Parameter (int, "the granularity in seconds for the reservation system")
25 return Lease.granularity