Re: Using dbus.service.signal decorator

Bogdan Lotko <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
Hello Simon,

Thank you for your help.
> At a high level, what is it that
> you intended to send? Writing it in the same form as the indented
> versions I wrote above might help.
I've wrote it in the further part of the original e-mail. It shall be:

variant   struct {
     string "myString"
     array [
        variant       struct {
             int32          1
             int32          1
             int32          1
        }
     ]
 }
so what I really need to send is a variant. 'v'.

Probably the only possible solution is as in the second approach described in the original e-mail. Please have a look on it!

  @dbus.service.signal('myInterface', 'v' )
  def mySignal(self, message):
     pass
  ...
  e = Emitter(bus)
  ...
  arr = dbus.Array( [], signature='(iii)' )
  s1 = dbus.Struct( (1,1,1), signature='(iii)', variant_level=1 )
  arr.append(s1)
  e.mySignal( ('myString', arr) )

with best regards,

-- 

*Bogdan Lotko*

[email protected]
Phone: +43 1 2852458
Mobile: +43 676 6615012

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
signature.asc (application/pgp-signature, 835 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iQIcBAEBAgAGBQJZRBthAAoJEO4HuQJ0qOU/i4QP/RpVIxoZqMSYIianv+Oik8kf
FlLx0THqnu4BM6Eb74pqjlqs2kL1Bmrs7GBJ8Yk47X4NElSEljZF8LdwMCsfAlwn
KPymwn4/J2wRX6QA6I3lRsaT2FdTGI+JkDOi6/AVAj/4ZuPQ425XsGgLb1oaiwhi
xEKwBF2mM1fIk+OQ80wmVOGjTxtvPCjLqfSMC0ISleVfG0QwlAytwe91oQLtVhHQ
IRkA4JhccsCnqFePGYlCaIR2pd6SVadleL/GTQJ8wvTeRr91udo5REc/j8bnv/Z6
jHI4ElWBH9DDmhjnNadNTztc1OnqrcmdTmhE8PYr4mnXi+nqqFrZ6Eluz0kG64A4
NzKpYwFbj++iPiGpfUKKi9A/er9kffiZ6pomDxDNaBlVPHYjVdXTdjTX/sX4lp08
WVC6ZNopCboJp5HOTjZB/e/DSmLfCiXLAXVP1IOzyluSi+5AmSrLuBnQGtxA/I2K
18y1mFEFSEEG38ukX7LsUa/QmcnzD5ZYpL3kmMSuwWERb/gLXvao7xNkRij3Dekk
tUv31QZx1Rru1A+4sggsaCa+urxTyARFbUMyeCiGhoGN8nf9W1ip+bdgfk25fQOa
qmRdVZr878PxTiYjbH/LDBJc43LYBIzQ2wkJLx9uG09kSA1kznhMmbynQDDGiGii
0LxRB7jCY48kcFIP0rrH
=ZMFs
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.