Mercurial > libervia-backend
diff libervia/backend/bridge/pb.py @ 4280:4cf98f506269
bridge(constructor): fix template parsing, which was broken following `black` reformating.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 12 Jul 2024 17:58:06 +0200 |
parents | 0d7bb4df2343 |
children | 3a550e9a2b55 |
line wrap: on
line diff
--- a/libervia/backend/bridge/pb.py Fri Jul 05 17:18:37 2024 +0200 +++ b/libervia/backend/bridge/pb.py Fri Jul 12 17:58:06 2024 +0200 @@ -164,6 +164,7 @@ """ self.root._bridge_reactivate_signals() + def _debug(self, action, params, profile): self.send_signal("_debug", action, params, profile) @@ -186,39 +187,13 @@ 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) @@ -226,34 +201,8 @@ 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)