You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I express this ( a{sv} as parameter to a Method) with the spring expression language that is used in the FX-GUI?
Example: UDisks2
Bus: systembus,
Busname: org.freedesktop.UDisks2
Objectpath: /org/freedesktop/UDisks2/drives/choose any drive
Interface: org.freedesktop.UDisks2.Drive.Ata
Methodname: SmartGetAttributes( Dict of {String, Variant} options) -> returns Array of foo...
In d-feet (the python programm) you enter something like this, nowakeuo is a standardoption
that can be set on most Methods:
{'nowakeup': GLib.Variant("b",1)}
or an empty Set here for SmartGetAttributes() works too:
{}
In both cases you get a return value.
How do you express this with the spring expression language?
The text was updated successfully, but these errors were encountered:
It turns out you couldn't express this, plus there was a bug that meant even if you could, it wouldn't have worked.
I've just released version 1.1.0, which now has support for constructing a new Variant. So you can do ...
{nowakekup: new variant(true, 'b')}
"variant" is case insensitive, and it accepts either one or two arguments. The single argument new variant('some value') will automatically determine the signature, the two argument constructor lets you specify the exact signature as the 2nd argument. Note, this is the other way around to python.
Your example now results in this ..
Ps, thanks for bug report, and sorry for slow response.
How can I express this ( a{sv} as parameter to a Method) with the spring expression language that is used in the FX-GUI?
Example: UDisks2
Bus: systembus,
Busname: org.freedesktop.UDisks2
Objectpath: /org/freedesktop/UDisks2/drives/choose any drive
Interface: org.freedesktop.UDisks2.Drive.Ata
Methodname: SmartGetAttributes( Dict of {String, Variant} options) -> returns Array of foo...
In d-feet (the python programm) you enter something like this, nowakeuo is a standardoption
that can be set on most Methods:
{'nowakeup': GLib.Variant("b",1)}
or an empty Set here for SmartGetAttributes() works too:
{}
In both cases you get a return value.
How do you express this with the spring expression language?
The text was updated successfully, but these errors were encountered: