Make sure the handle dict values are string. Looks
like dbus-python get confused if they are dbus.String.
This commit is contained in:
parent
7e45c5446d
commit
0e45b8fcf1
@ -67,13 +67,15 @@ class ActivityHandle(object):
|
|||||||
|
|
||||||
def get_dict(self):
|
def get_dict(self):
|
||||||
"""Retrieve our settings as a dictionary"""
|
"""Retrieve our settings as a dictionary"""
|
||||||
result = { 'activity_id' : self.activity_id }
|
result = { }
|
||||||
|
if self.activity_id:
|
||||||
|
result['activity_id'] = str(self.activity_id)
|
||||||
if self.pservice_id:
|
if self.pservice_id:
|
||||||
result['pservice_id'] = self.pservice_id
|
result['pservice_id'] = str(self.pservice_id)
|
||||||
if self.object_id:
|
if self.object_id:
|
||||||
result['object_id'] = self.object_id
|
result['object_id'] = str(self.object_id)
|
||||||
if self.uri:
|
if self.uri:
|
||||||
result['uri'] = self.uri
|
result['uri'] = str(self.uri)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user