Ticket #2245: 0001-Use-public-API.patch

File 0001-Use-public-API.patch, 829 bytes (added by tomeu, 11 years ago)
  • shareable_activity.py

    From 2b798ccd781ed245845915b60da9d26bfc7dbb6d Mon Sep 17 00:00:00 2001
    From: Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>
    Date: Thu, 26 Aug 2010 16:12:33 +0200
    Subject: [PATCH] Use public API
    
    ---
     shareable_activity.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/shareable_activity.py b/shareable_activity.py
    index 0626f9d..c418666 100644
    a b class ShareableActivity(activity.Activity): 
    5252
    5353        self._pservice = presenceservice.get_instance()
    5454        self._owner = self._pservice.get_owner()
    55         self._owner_id = str(self._owner._properties['nick'])
     55        self._owner_id = str(self._owner.props.nick)
    5656
    5757        self._service_path = kwargs.get('service_path',
    5858            self._generate_service_path())