Sugar Labs

Port to TelepathyGLib (1 of 3)

Port a Sugar activity from Python Telepathy to the PyGObject introspection module TelepathyGLib. Python Telepathy is deprecated and not available for Python 3, so for an activity this change is a prerequisite for Port to Python 3. TelepathyGLib is the replacement.

Change from

from telepathy.foo import bar

to

import gi
gi.require_version('TelepathyGLib', '0.12')
from gi.repository import TelepathyGLib

and make all consequent changes to keep the activity working. foo and bar are metasyntactic variables; i.e. this is not a real example.

Our Python 3 Porting Guide has a section devoted to this task. Collaboration must be tested, for which you will need two or more computers or VMs on a virtual network. Our Python 3 Porting Guide reminds us that collaboration must be working before changing source code.

Find an activity to port by searching our GitHub repositories. As of 2019-11-23 there were 68+ matches for the code pattern "from telepathy" in org:sugarlabs.

Examples of how other source code was ported can be found in previous commits for CollabWrapper and the Sugar Toolkit for GTK 3.

Task tags

  • python
  • telepathy

Students who completed this task

Kiy4h, srevinsaju

Task type

  • code Code
close

2019