diff options
author | erick <erick@sugar-dev-erick.(none)> | 2009-12-02 03:31:36 (GMT) |
---|---|---|
committer | erick <erick@sugar-dev-erick.(none)> | 2009-12-02 03:31:36 (GMT) |
commit | 48c783d2ad109f772f09df441dd873682a7bf1b0 (patch) | |
tree | 12677cd2ee4cf6e6a2d714d0bd3f3871df0437e0 /tutorius/TProbe.py | |
parent | 6686a0f73d0eaa86221f40a7074e8f5b3aac7d63 (diff) |
Reexposed explicitly the activity_name and unique_id used in probes for the dbus session as constructor arguments on probe
Diffstat (limited to 'tutorius/TProbe.py')
-rw-r--r-- | tutorius/TProbe.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tutorius/TProbe.py b/tutorius/TProbe.py index 4e458a0..06e4794 100644 --- a/tutorius/TProbe.py +++ b/tutorius/TProbe.py @@ -54,11 +54,13 @@ class TProbe(dbus.service.Object): a DBUS Interface. """ - def __init__(self, activity, service_proxy=None): + def __init__(self, activity, activity_name, unique_id, service_proxy=None): """ Create and register a TProbe for an activity. @param activity activity reference, must be a gtk container + @param activity_name generic name for the activity + @param unique_id specific name for this instance @param service_proxy A Service proxy object to do the registering """ # Moving the ObjectStore assignment here, in the meantime @@ -74,8 +76,8 @@ class TProbe(dbus.service.Object): ObjectStore().activity = activity - self._activity_name = activity.get_bundle_id() - self._unique_id = activity.get_id() + self._activity_name = activity_name + self._unique_id = unique_id LOGGER.debug("TProbe :: Creating TProbe for %s (%d)", self._activity_name, os.getpid()) LOGGER.debug("TProbe :: Current gobject context: %s", str(gobject.main_context_default())) |