| Parameters: | hosts (list) – List of hosts to query |
|---|
Class for querying (and caching) presence data. The optional hosts list can define which hosts will be used for querying presence database.
| Parameters: | person (string) – Username |
|---|---|
| Return type: | list |
| Returns: | List of absences |
Returns list of absences for given person.
| Parameters: |
|
|---|---|
| Return type: | bool |
Checks whether person is absent on given date.
The optional threshold parameter can specify how long absences to ignore. For example setting it to 1 will ignore one day absences which would otherwise make the method return true.