Mercurial > libervia-backend
diff libervia/backend/bridge/pb.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | a8a0fa678ce2 |
children | 4cf98f506269 |
line wrap: on
line diff
--- a/libervia/backend/bridge/pb.py Tue Jun 18 12:06:45 2024 +0200 +++ b/libervia/backend/bridge/pb.py Wed Jun 19 18:44:57 2024 +0200 @@ -99,6 +99,7 @@ del self.signals_paused log.debug("bridge signals have been reactivated") + ##METHODS_PART## @@ -136,7 +137,7 @@ # self.root.register_method(name, callback) def add_method( - self, name, int_suffix, in_sign, out_sign, method, async_=False, doc={} + self, name, int_suffix, in_sign, out_sign, method, async_=False, doc={} ): """Dynamically add a method to PB bridge""" # FIXME: doc parameter is kept only temporary, the time to remove it from calls @@ -185,13 +186,39 @@ self.send_signal("entity_data_updated", jid, name, value, profile) def message_encryption_started(self, to_jid, encryption_data, profile_key): - self.send_signal("message_encryption_started", to_jid, encryption_data, profile_key) + self.send_signal( + "message_encryption_started", to_jid, encryption_data, profile_key + ) def message_encryption_stopped(self, to_jid, encryption_data, profile_key): - self.send_signal("message_encryption_stopped", to_jid, encryption_data, profile_key) + self.send_signal( + "message_encryption_stopped", to_jid, encryption_data, profile_key + ) - def message_new(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): - self.send_signal("message_new", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile) + def message_new( + self, + uid, + timestamp, + from_jid, + to_jid, + message, + subject, + mess_type, + extra, + profile, + ): + self.send_signal( + "message_new", + uid, + timestamp, + from_jid, + to_jid, + message, + subject, + mess_type, + extra, + profile, + ) def message_update(self, uid, message_type, message_data, profile): self.send_signal("message_update", uid, message_type, message_data, profile) @@ -199,8 +226,34 @@ def notification_deleted(self, id, profile): self.send_signal("notification_deleted", id, profile) - def notification_new(self, id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile): - self.send_signal("notification_new", id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile) + def notification_new( + self, + id, + timestamp, + type, + body_plain, + body_rich, + title, + requires_action, + priority, + expire_at, + extra, + profile, + ): + self.send_signal( + "notification_new", + id, + timestamp, + type, + body_plain, + body_rich, + title, + requires_action, + priority, + expire_at, + extra, + profile, + ) def param_update(self, name, value, category, profile): self.send_signal("param_update", name, value, category, profile)