Add object_id
This commit is contained in:
parent
d504124cc2
commit
1cadd9c1ce
@ -21,6 +21,7 @@ class ActivityHandle(object):
|
|||||||
def __init__(self, activity_id):
|
def __init__(self, activity_id):
|
||||||
self.activity_id = activity_id
|
self.activity_id = activity_id
|
||||||
self.pservice_id = None
|
self.pservice_id = None
|
||||||
|
self.object_id = None
|
||||||
self.uri = None
|
self.uri = None
|
||||||
|
|
||||||
def get_presence_service(self):
|
def get_presence_service(self):
|
||||||
@ -34,6 +35,8 @@ class ActivityHandle(object):
|
|||||||
result = { 'activity_id' : self.activity_id }
|
result = { 'activity_id' : self.activity_id }
|
||||||
if self.pservice_id:
|
if self.pservice_id:
|
||||||
result['pservice_id'] = self.pservice_id
|
result['pservice_id'] = self.pservice_id
|
||||||
|
if self.object_id:
|
||||||
|
result['object_id'] = self.object_id
|
||||||
if self.uri:
|
if self.uri:
|
||||||
result['uri'] = self.uri
|
result['uri'] = self.uri
|
||||||
|
|
||||||
@ -43,6 +46,8 @@ def create_from_dict(handle_dict):
|
|||||||
result = ActivityHandle(handle_dict['activity_id'])
|
result = ActivityHandle(handle_dict['activity_id'])
|
||||||
if handle_dict.has_key('pservice_id'):
|
if handle_dict.has_key('pservice_id'):
|
||||||
result.pservice_id = handle_dict['pservice_id']
|
result.pservice_id = handle_dict['pservice_id']
|
||||||
|
if handle_dict.has_key('object_id'):
|
||||||
|
result.uri = handle_dict['object_id']
|
||||||
if handle_dict.has_key('uri'):
|
if handle_dict.has_key('uri'):
|
||||||
result.uri = handle_dict['uri']
|
result.uri = handle_dict['uri']
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
VERSION=0.63
|
VERSION=0.63
|
||||||
DATE=`date +%Y%m%d`
|
DATE=`date +%Y%m%d`
|
||||||
RELEASE=2.34
|
RELEASE=2.36
|
||||||
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
|
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
|
||||||
|
|
||||||
rm sugar-$VERSION.tar.bz2
|
rm sugar-$VERSION.tar.bz2
|
||||||
|
Loading…
Reference in New Issue
Block a user