Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (15 loc) · 911 Bytes

PanicAdminUsers.rst

File metadata and controls

24 lines (15 loc) · 911 Bytes

PanicAdminUsers property

The PanicAdminUsers property will contain all users enabled to modify an alarm.

Although, any user identified as an email receiver of an alarm will be allowed to change it.

The propery is check from the get_admins_for_alarm() method in AlarmAPI.

The method will be used to call the setAllowedUsers() of a validator plugin.

The methods that the i*ValidatedWidget decorator requires of a validator are:

  • setLogging()
  • setAllowedUsers()
  • setLogMessage()
  • exec()

User validation in the GUI will be kept for consecutive actions as long as the allowed users list for each action doesn't change. If a new action is required on an Alarm with different receivers, the login will be asked again.

The login will be kept for a time defined by PyAlarm.PanicUserTimeout property. This time is 60 seconds by default.