Files
pallectrum/electrum
Sander van Grieken 7cb8c347b5 Add @auth_protect decorator.
This guards function calls by storing the function, args and kwargs into
an added attribute '__auth_fcall' on the object using the decorator,
then emits a signal that can be handled by the UI.

The UI can signal auth-success or auth-failure back to the object by
calling either the authProceed() slot or the authCancel slot.

The object utilizing this decorator MUST inherit/mixin the AuthMixin
class, which provides the above two slots, and handling of state.

The decorator also accepts a 'reject' parameter, containing the name of
a parameterless function on the object, which is called when
authentication has failed/is cancelled.
2022-07-07 18:29:01 +02:00
..
2022-07-07 18:29:01 +02:00
2022-07-07 18:28:00 +02:00
2022-07-07 18:29:01 +02:00
2022-06-29 16:18:23 +02:00
2022-04-11 17:40:22 +02:00
2022-04-11 17:40:22 +02:00
2022-04-20 12:48:22 +02:00
2022-06-28 20:34:47 +02:00
2022-07-07 18:28:00 +02:00
2022-04-11 17:40:22 +02:00
2022-05-24 02:39:11 +00:00
2022-06-29 16:18:23 +02:00
2022-05-26 19:10:29 +02:00