WebProfileDialog#
- class astropy.samp.WebProfileDialog[source]#
Bases:
objectA base class to make writing Web Profile GUI consent dialogs easier.
The concrete class must:
Poll
handle_queueperiodically, using the timer services of the GUI’s event loop. This function will callself.show_dialogwhen a request requires authorization.self.show_dialogwill be given the arguments:samp_name: The name of the application making the request.details: A dictionary of details about the client making the request.client: A hostname, port pair containing the client address.origin: A string containing the origin of the request.
Call
consentorrejectbased on the user’s response to the dialog.
Methods Summary
consent()reject()Methods Documentation