Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-14 17:36:15 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-14 17:36:15 (GMT)
commit0234e08b9114182bc853d0763c1acc85e79ce83a (patch)
treed4fc08e94abeb8ba7c7018a1dc229b6dc53c956e
parent01e471387b0116dc766ecd3ec031723e885db825 (diff)
#4909 Add Resume method to the DBus service. (marco)
-rw-r--r--NEWS2
-rwxr-xr-xjournalactivity.py9
2 files changed, 11 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d9d9e02..d9f7807 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+* #4909 Add Resume method to the DBus service. (marco)
+
71
* #4414 Don't unfocus the search entry when the autosearch is fired. (tomeu)
diff --git a/journalactivity.py b/journalactivity.py
index 99ee437..67fa466 100755
--- a/journalactivity.py
+++ b/journalactivity.py
@@ -23,6 +23,7 @@ import gtk
import dbus
from sugar.activity import activity
+from sugar.activity import activityfactory
from sugar.activity.registry import get_registry as get_activity_registry
from sugar.bundle.bundle import ZipExtractException, RegistrationException
from sugar.datastore import datastore
@@ -70,6 +71,14 @@ class JournalActivityDBusService(dbus.service.Object):
self._parent.set_search(search_dict)
self._parent.search_grab_focus()
+ @dbus.service.method(J_DBUS_INTERFACE,
+ in_signature='ss', out_signature='')
+ def Resume(self, bundle_id, object_id):
+ """WARNING: This method will stop working in the next release after Update1.
+ """
+ logging.warning('WARNING: This method will stop working in the next release after Update1.')
+ activityfactory.create_with_object_id(bundle_id, object_id)
+
class JournalActivity(activity.Activity):
def __init__(self, handle):
activity.Activity.__init__(self, handle, create_jobject=False)