Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ActivityRegistry.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 10:57:42 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-08-09 10:57:42 (GMT)
commit7e85c5160ec0a04cb7434cd53368a7c5ba8ce0fa (patch)
tree13a0147daa22113625ce33818b1d938d893970da /shell/ActivityRegistry.py
parente4c4e866a5c99d81f7fa0a0972311a604c6f1af2 (diff)
Setup the activity from the shell process, through dbus,
this simplifies things a lot...
Diffstat (limited to 'shell/ActivityRegistry.py')
-rw-r--r--shell/ActivityRegistry.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ActivityRegistry.py b/shell/ActivityRegistry.py
index 3ac8a4f..acf379c 100644
--- a/shell/ActivityRegistry.py
+++ b/shell/ActivityRegistry.py
@@ -45,6 +45,13 @@ class ActivityRegistry:
def __init__(self):
self._activities = []
+
+ def get_activity_from_id(self, activity_id):
+ """Returns an activity given his identifier"""
+ for activity in self._activities:
+ if activity.get_id() == activity_id:
+ return activity
+ return None
def get_activity(self, default_type):
"""Returns an activity given his default type"""