Comments (5)
In the meantime, I have written this:
import dbussy
def convert_dbussy(data):
if isinstance(data, list):
return [convert_dbussy(item) for item in data]
if isinstance(data, dict):
return {key: convert_dbussy(data[key]) for key in data.keys()}
if isinstance(data, tuple) and isinstance(data[0], dbussy.DBUS.Signature):
return convert_dbussy(data[1])
return data
from dbussy.
Is this for variant-type arguments? Remember, you will only see these where you specify a variant type in your signature.
from dbussy.
It is indeed for variant-type arguments of signals
from dbussy.
In that case, the type information is useful. It tells you what type was sent by the requestor.
from dbussy.
That may well be, but the current code runs fine if I strip the signatures from the arguments I get with signals
Thank you for your reply
from dbussy.
Related Issues (20)
- StructType inside ArrayType are broken HOT 2
- Cannot return a single value HOT 4
- unregister specific interface HOT 3
- Example of ravel.ManagedObjectsHandler().get_managed_objects(...) HOT 2
- How to pass signatures HOT 4
- Help needed to migrating a wifi agent HOT 8
- Possible examples HOT 1
- Apparently harmless Exception in ravel.py HOT 12
- Openning a connection to a separate D-BUS bus HOT 2
- Support matching on arg0 for ravel's `listen_signal()`
- High CPU usage for `_reaper` HOT 2
- Adding argument of an Array of Dictionaries leads to AttributeError HOT 2
- Exceptions in asynchronous property setting not propagated to the user code HOT 10
- Diagnosis: Name Issue
- Strange behavior on ravel connection object deletion HOT 6
- Should there be a ravel.Connection.listen_signal_async? HOT 1
- Move away from distutils HOT 1
- Trouble sending a message with an argument of type "aay" HOT 2
- Cannot run loop in IDE HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbussy.