diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-11-25 13:59:58 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-11-25 14:06:25 (GMT) |
commit | 3d94d65dc2ea3042d1e105bd097878126921d18e (patch) | |
tree | 364e1b713ce60611aa512aa05b1ba89a50473b8e | |
parent | 49f8f957d54ee5f8dca902548e47333216beece2 (diff) |
Remove use of deprecated presenceservice
Use sugar.profile instead
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | balloongame.py | 2 | ||||
-rw-r--r-- | lessonscreen.py | 2 | ||||
-rwxr-xr-x | typingturtle.py | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/balloongame.py b/balloongame.py index 5c36a15..56a6a34 100644 --- a/balloongame.py +++ b/balloongame.py @@ -253,7 +253,7 @@ class BalloonGame(gtk.VBox): 'lesson': self.lesson['name'], 'type': got_medal, 'date': datetime.date.today().strftime('%B %d, %Y'), - 'nick': self.activity.owner.props.nick, + 'nick': self.activity.nick, 'score': self.score } self.medal = medal diff --git a/lessonscreen.py b/lessonscreen.py index 6eed243..cc75ef4 100644 --- a/lessonscreen.py +++ b/lessonscreen.py @@ -574,7 +574,7 @@ class LessonScreen(gtk.VBox): 'lesson': lesson_name, 'type': got_medal, 'date': datetime.date.today().strftime('%B %d, %Y'), - 'nick': self.activity.owner.props.nick, + 'nick': self.activity.nick, 'time': self.total_time, 'wpm': report['wpm'], 'accuracy': report['accuracy'] diff --git a/typingturtle.py b/typingturtle.py index 38d7afc..ad6c6cb 100755 --- a/typingturtle.py +++ b/typingturtle.py @@ -35,8 +35,7 @@ import gobject, pygtk, gtk, pango import sugar.activity.activity from sugar.graphics import * from sugar.graphics import toolbutton - -from sugar.presence import presenceservice +from sugar import profile OLD_TOOLBAR = False try: @@ -73,7 +72,7 @@ class TypingTurtle(sugar.activity.activity.Activity): self.screens = [] self.screenbox = gtk.VBox() - self.owner = presenceservice.get_instance().get_owner() + self.nick = profile.get_nick_name() self.wordlist = [] |