MCPcopy Index your code
hub / github.com/rawpython/remi / on_renew

Method on_renew

examples/session_app.py:194–199  ·  view source on GitHub ↗
(self, emitter)

Source from the content-addressed store, hash-verified

192 self.lblsession_status.set_text('LOGGED IN')
193
194 def on_renew(self, emitter):
195 if not self.login_manager.expired:
196 self.login_manager.renew_session()
197 self.lblsession_status.set_text('RENEW')
198 else:
199 self.lblsession_status.set_text('UNABLE TO RENEW')
200
201 def on_logout(self, emitter):
202 self.lblsession_status.set_text('LOGOUT')

Callers

nothing calls this directly

Calls 2

renew_sessionMethod · 0.80
set_textMethod · 0.45

Tested by

no test coverage detected