diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-06-22 14:31:21 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-08-20 13:33:52 (GMT) |
commit | 98cc77f1fb35ae0c0e44a27dc389248b8024bba7 (patch) | |
tree | e91674e18a1f142069f51453a4708f7f6b2c687a /src/sugar/activity/activityfactory.py | |
parent | d6da506dfdd8dbfa2e6baf145d4bb62dbb5b73cc (diff) |
Replace enough of the old PS so we can join an activity instance on the network.
* src/sugar/activity/activity.py: Get the shared activity wrapper from
sugar.presence.
* src/sugar/activity/activityfactory.py: Disable checking in the PS for
activity_id duplicates.
* src/sugar/presence/activity.py: Remove the PS dependency and query Telepathy
directly. Implemented enough to join an activity.
* src/sugar/presence/buddy.py: Remove the PS dependency and query Telepathy
directly. Implemented enough to join an activity. Added an Owner subclass of
Buddy()
* src/sugar/presence/presenceservice.py: Remove the PS dependency and query Telepathy
directly. Implemented enough to join an activity.
* src/sugar/presence/util.py: Add ConnectionManager for discovering and tracking
connections.
Diffstat (limited to 'src/sugar/activity/activityfactory.py')
-rw-r--r-- | src/sugar/activity/activityfactory.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sugar/activity/activityfactory.py b/src/sugar/activity/activityfactory.py index 6b4ba32..0dd3793 100644 --- a/src/sugar/activity/activityfactory.py +++ b/src/sugar/activity/activityfactory.py @@ -75,11 +75,14 @@ def create_activity_id(): # check through network activities found = False + logging.info('KILL_PS check the activity_id is not used in the network') + """ activities = pservice.get_activities() for act in activities: if act_id == act.props.id: found = True break + """ if not found: return act_id raise RuntimeError("Cannot generate unique activity id.") |