From 182de3af1cd0c9a54199a9bd26c054f14aa5c817 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 13 Apr 2007 15:41:19 -0400 Subject: [PATCH] Remove test code --- services/presence/presenceservice.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py index b848c825..9fa34834 100644 --- a/services/presence/presenceservice.py +++ b/services/presence/presenceservice.py @@ -159,20 +159,7 @@ class PresenceService(dbus.service.Object): return None activity.connect("validity-changed", self._activity_validity_changed_cb) - self._activities[activity_id] = activity - - # FIXME - # Use values from the network - #import random - #names = ["Tommy", "Susie", "Jill", "Bryan", "Nathan", "Sophia", "Haley", "Jimmy"] - #name = names[random.randint(0, len(names) - 1)] - #activity.props.name = "Chat with %s" % name - #activity.props.type = "org.laptop.Sugar.Chat" - #from sugar.graphics import xocolor - #color = xocolor.XoColor().to_string() - #activity.props.color = color - return activity def _remove_activity(self, activity):