3 9Pe ã@sddlZGdd„dƒZdS)éNc@s4eZdZdZd dd„Zdd„Zdd„Zd d d „ZdS) Úkeyeventzµ A discrete key event, e.g., Publish, Activate, Inactive, Delete, etc. Stores the date of the event, and identifying information about the key to which the event will occur.NcCs@||_|p|j|ƒ|_||_|j|_|j|_|j|_|j|_dS)N) ÚwhatZgettimeÚwhenÚkeyÚsepÚnameÚzoneÚalgÚkeyid)Úselfrrr©r ú/usr/lib/python3.6/keyevent.pyÚ__init__szkeyevent.__init__cCs t|j|j|j|j|j|jfƒS)N)Úreprrrr rrr )r r r r Ú__repr__ szkeyevent.__repr__cCstjd|jƒS)Nz%a %b %d %H:%M:%S UTC %Y)ÚtimeZstrftimer)r r r r Úshowtime$szkeyevent.showtimecCsþdd„}|s|}|stƒ}|s$tƒ}|jdkr<|j|jƒnº|jdkrT|j|jƒn¢|jdkrŠ|j|kr||dt|jƒƒqö|j|jƒnl|jdkrÀ|j|kr¬|j|jƒqö|dt|jƒƒn6|jd krö|j|krà|j|jƒ|j|krö|j|jƒ||fS) Nc_sdS)Nr )ÚargsÚkwargsr r r Únoop*szkeyevent.status..noopZActivateZPublishZInactivez= WARNING: %s scheduled to become inactive before it is activeZDeletez@WARNING: key %s is scheduled for deletion before it is publishedZRevoke)ÚsetrÚaddr rrÚremove)r ZactiveZ publishedÚoutputrr r r Ústatus)s6           zkeyevent.status)N)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrr r r r rs  r)rrr r r r Ú s