Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
4279:6276242736c3 | 4280:4cf98f506269 |
---|---|
162 | 162 |
163 Should only be used after bridge_deactivate_signals has been called | 163 Should only be used after bridge_deactivate_signals has been called |
164 """ | 164 """ |
165 self.root._bridge_reactivate_signals() | 165 self.root._bridge_reactivate_signals() |
166 | 166 |
167 | |
167 def _debug(self, action, params, profile): | 168 def _debug(self, action, params, profile): |
168 self.send_signal("_debug", action, params, profile) | 169 self.send_signal("_debug", action, params, profile) |
169 | 170 |
170 def action_new(self, action_data, id, security_limit, profile): | 171 def action_new(self, action_data, id, security_limit, profile): |
171 self.send_signal("action_new", action_data, id, security_limit, profile) | 172 self.send_signal("action_new", action_data, id, security_limit, profile) |
184 | 185 |
185 def entity_data_updated(self, jid, name, value, profile): | 186 def entity_data_updated(self, jid, name, value, profile): |
186 self.send_signal("entity_data_updated", jid, name, value, profile) | 187 self.send_signal("entity_data_updated", jid, name, value, profile) |
187 | 188 |
188 def message_encryption_started(self, to_jid, encryption_data, profile_key): | 189 def message_encryption_started(self, to_jid, encryption_data, profile_key): |
189 self.send_signal( | 190 self.send_signal("message_encryption_started", to_jid, encryption_data, profile_key) |
190 "message_encryption_started", to_jid, encryption_data, profile_key | |
191 ) | |
192 | 191 |
193 def message_encryption_stopped(self, to_jid, encryption_data, profile_key): | 192 def message_encryption_stopped(self, to_jid, encryption_data, profile_key): |
194 self.send_signal( | 193 self.send_signal("message_encryption_stopped", to_jid, encryption_data, profile_key) |
195 "message_encryption_stopped", to_jid, encryption_data, profile_key | 194 |
196 ) | 195 def message_new(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): |
197 | 196 self.send_signal("message_new", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile) |
198 def message_new( | |
199 self, | |
200 uid, | |
201 timestamp, | |
202 from_jid, | |
203 to_jid, | |
204 message, | |
205 subject, | |
206 mess_type, | |
207 extra, | |
208 profile, | |
209 ): | |
210 self.send_signal( | |
211 "message_new", | |
212 uid, | |
213 timestamp, | |
214 from_jid, | |
215 to_jid, | |
216 message, | |
217 subject, | |
218 mess_type, | |
219 extra, | |
220 profile, | |
221 ) | |
222 | 197 |
223 def message_update(self, uid, message_type, message_data, profile): | 198 def message_update(self, uid, message_type, message_data, profile): |
224 self.send_signal("message_update", uid, message_type, message_data, profile) | 199 self.send_signal("message_update", uid, message_type, message_data, profile) |
225 | 200 |
226 def notification_deleted(self, id, profile): | 201 def notification_deleted(self, id, profile): |
227 self.send_signal("notification_deleted", id, profile) | 202 self.send_signal("notification_deleted", id, profile) |
228 | 203 |
229 def notification_new( | 204 def notification_new(self, id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile): |
230 self, | 205 self.send_signal("notification_new", id, timestamp, type, body_plain, body_rich, title, requires_action, priority, expire_at, extra, profile) |
231 id, | |
232 timestamp, | |
233 type, | |
234 body_plain, | |
235 body_rich, | |
236 title, | |
237 requires_action, | |
238 priority, | |
239 expire_at, | |
240 extra, | |
241 profile, | |
242 ): | |
243 self.send_signal( | |
244 "notification_new", | |
245 id, | |
246 timestamp, | |
247 type, | |
248 body_plain, | |
249 body_rich, | |
250 title, | |
251 requires_action, | |
252 priority, | |
253 expire_at, | |
254 extra, | |
255 profile, | |
256 ) | |
257 | 206 |
258 def param_update(self, name, value, category, profile): | 207 def param_update(self, name, value, category, profile): |
259 self.send_signal("param_update", name, value, category, profile) | 208 self.send_signal("param_update", name, value, category, profile) |
260 | 209 |
261 def presence_update(self, entity_jid, show, priority, statuses, profile): | 210 def presence_update(self, entity_jid, show, priority, statuses, profile): |