I have tested it.<br>I found a problem. With this patch , the title of the activity is not copied from the XO who share the activity<br>to the Xo who receive the activity.<br>Testing it I have found, the other fields in the metadata (description, tags, type) are not transfered too,<br>
(with this patch or without this patch) but I don't know if this is a bug or is by design.<br><br>Gonzalo<br><br><div class="gmail_quote">On Fri, Jun 24, 2011 at 6:45 AM, Simon Schampijer <span dir="ltr"><<a href="mailto:simon@schampijer.de">simon@schampijer.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">To avoind that we try to access the datastore entry before<br>
it has been created we need to move the creation code up.<br>
Tested that no other operation like resuming has issues with<br>
that change.<br>
<br>
Signed-off-by: Simon Schampijer <<a href="mailto:simon@laptop.org">simon@laptop.org</a>><br>
---<br>
 src/sugar/activity/activity.py |    9 +++++----<br>
 1 files changed, 5 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py<br>
index 35082cc..c1a708b 100644<br>
--- a/src/sugar/activity/activity.py<br>
+++ b/src/sugar/activity/activity.py<br>
@@ -313,6 +313,11 @@ class Activity(Window, gtk.Container):<br>
         self.shared_activity = None<br>
         self._join_id = None<br>
<br>
+        if handle.object_id is None and create_jobject:<br>
+            logging.debug('Creating a jobject.')<br>
+            self._jobject = self._initialize_journal_object()<br>
+            self.set_title(self._jobject.metadata['title'])<br>
+<br>
         if handle.invited:<br>
             wait_loop = gobject.MainLoop()<br>
             self._client_handler = _ClientHandler(<br>
@@ -328,10 +333,6 @@ class Activity(Window, gtk.Container):<br>
                                                   warn_if_none=False)<br>
             self._set_up_sharing(mesh_instance, share_scope)<br>
<br>
-        if handle.object_id is None and create_jobject:<br>
-            logging.debug('Creating a jobject.')<br>
-            self._jobject = self._initialize_journal_object()<br>
-            self.set_title(self._jobject.metadata['title'])<br>
<br>
     def _initialize_journal_object(self):<br>
         title = _('%s Activity') % get_bundle_name()<br>
<font color="#888888">--<br>
1.7.4.4<br>
<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</font></blockquote></div><br>