Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-01-05 09:58:29 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-01-05 09:58:29 (GMT)
commit53b14ad0810fa4838dec468b7a8793782935ab2f (patch)
tree7a5bf0393eb7b930f76bde5e7eb5761f8181c30f /sugar
parent62eada2ee0785a4f0182e13d40dd3273302024d7 (diff)
Comment out the journal stuff for now.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/activity/Activity.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/sugar/activity/Activity.py b/sugar/activity/Activity.py
index 4ec29fa..be3a1d5 100644
--- a/sugar/activity/Activity.py
+++ b/sugar/activity/Activity.py
@@ -109,7 +109,7 @@ class Activity(gtk.Window):
self._shared = False
self._activity_id = None
self._service = None
- self._journal_object = None
+ #self._journal_object = None
self._pservice = PresenceService.get_instance()
self.realize()
@@ -128,7 +128,7 @@ class Activity(gtk.Window):
self._activity_id = sugar.util.unique_id()
- ds = datastore.get_instance()
+ #ds = datastore.get_instance()
#self._journal_object = ds.create('', {}, self._activity_id)
#
#date = datetime.datetime.now()
@@ -137,9 +137,9 @@ class Activity(gtk.Window):
self.present()
- def get_journal_object(self):
- """Returns the journal object associated with the activity."""
- return self._journal_object
+# def get_journal_object(self):
+# """Returns the journal object associated with the activity."""
+# return self._journal_object
def get_type(self):
"""Gets the activity type."""
@@ -180,8 +180,8 @@ class Activity(gtk.Window):
else:
logging.error('Cannot join the activity')
- ds = datastore.get_instance()
- self._journal_object = ds.get_activity_object(self._activity_id)
+ #ds = datastore.get_instance()
+ #self._journal_object = ds.get_activity_object(self._activity_id)
self.present()
@@ -205,6 +205,7 @@ class Activity(gtk.Window):
self._pservice.unregister_service(self._service)
def _title_changed_cb(self, window, spec):
- jobject = self.get_journal_object()
- if jobject:
- jobject.set_properties({'title' : self.props.title})
+ pass
+# jobject = self.get_journal_object()
+# if jobject:
+# jobject.set_properties({'title' : self.props.title})