comparison sat/bridge/pb.py @ 2628:779351da2c13

core, frontends: replaced org\.goffi namespaces by org.salutatoi + fixed generation: generation of D-Bus bridge has been broken by black formatting tool, this patch fixes this.
author Goffi <goffi@goffi.org>
date Sun, 01 Jul 2018 20:37:58 +0200
parents 56f94936df1e
children b8600f8130ac
comparison
equal deleted inserted replaced
2627:163aab916bcf 2628:779351da2c13
101 log.debug("Adding signal {name} to PB bridge".format(name=name)) 101 log.debug("Adding signal {name} to PB bridge".format(name=name))
102 setattr( 102 setattr(
103 self, name, lambda *args, **kwargs: self.sendSignal(name, *args, **kwargs) 103 self, name, lambda *args, **kwargs: self.sendSignal(name, *args, **kwargs)
104 ) 104 )
105 105
106
106 def actionNew(self, action_data, id, security_limit, profile): 107 def actionNew(self, action_data, id, security_limit, profile):
107 self.sendSignal("actionNew", action_data, id, security_limit, profile) 108 self.sendSignal("actionNew", action_data, id, security_limit, profile)
108 109
109 def connected(self, profile, jid_s): 110 def connected(self, profile, jid_s):
110 self.sendSignal("connected", profile, jid_s) 111 self.sendSignal("connected", profile, jid_s)
116 self.sendSignal("disconnected", profile) 117 self.sendSignal("disconnected", profile)
117 118
118 def entityDataUpdated(self, jid, name, value, profile): 119 def entityDataUpdated(self, jid, name, value, profile):
119 self.sendSignal("entityDataUpdated", jid, name, value, profile) 120 self.sendSignal("entityDataUpdated", jid, name, value, profile)
120 121
121 def messageNew( 122 def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile):
122 self, 123 self.sendSignal("messageNew", uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile)
123 uid,
124 timestamp,
125 from_jid,
126 to_jid,
127 message,
128 subject,
129 mess_type,
130 extra,
131 profile,
132 ):
133 self.sendSignal(
134 "messageNew",
135 uid,
136 timestamp,
137 from_jid,
138 to_jid,
139 message,
140 subject,
141 mess_type,
142 extra,
143 profile,
144 )
145 124
146 def newContact(self, contact_jid, attributes, groups, profile): 125 def newContact(self, contact_jid, attributes, groups, profile):
147 self.sendSignal("newContact", contact_jid, attributes, groups, profile) 126 self.sendSignal("newContact", contact_jid, attributes, groups, profile)
148 127
149 def paramUpdate(self, name, value, category, profile): 128 def paramUpdate(self, name, value, category, profile):