Comment out the journal stuff for now.

This commit is contained in:
Marco Pesenti Gritti 2007-01-05 10:58:29 +01:00
parent 62eada2ee0
commit 53b14ad081

View File

@ -109,7 +109,7 @@ class Activity(gtk.Window):
self._shared = False self._shared = False
self._activity_id = None self._activity_id = None
self._service = None self._service = None
self._journal_object = None #self._journal_object = None
self._pservice = PresenceService.get_instance() self._pservice = PresenceService.get_instance()
self.realize() self.realize()
@ -128,7 +128,7 @@ class Activity(gtk.Window):
self._activity_id = sugar.util.unique_id() self._activity_id = sugar.util.unique_id()
ds = datastore.get_instance() #ds = datastore.get_instance()
#self._journal_object = ds.create('', {}, self._activity_id) #self._journal_object = ds.create('', {}, self._activity_id)
# #
#date = datetime.datetime.now() #date = datetime.datetime.now()
@ -137,9 +137,9 @@ class Activity(gtk.Window):
self.present() self.present()
def get_journal_object(self): # def get_journal_object(self):
"""Returns the journal object associated with the activity.""" # """Returns the journal object associated with the activity."""
return self._journal_object # return self._journal_object
def get_type(self): def get_type(self):
"""Gets the activity type.""" """Gets the activity type."""
@ -180,8 +180,8 @@ class Activity(gtk.Window):
else: else:
logging.error('Cannot join the activity') logging.error('Cannot join the activity')
ds = datastore.get_instance() #ds = datastore.get_instance()
self._journal_object = ds.get_activity_object(self._activity_id) #self._journal_object = ds.get_activity_object(self._activity_id)
self.present() self.present()
@ -205,6 +205,7 @@ class Activity(gtk.Window):
self._pservice.unregister_service(self._service) self._pservice.unregister_service(self._service)
def _title_changed_cb(self, window, spec): def _title_changed_cb(self, window, spec):
jobject = self.get_journal_object() pass
if jobject: # jobject = self.get_journal_object()
jobject.set_properties({'title' : self.props.title}) # if jobject:
# jobject.set_properties({'title' : self.props.title})