Codebase list sugar-read-activity / 099e504
Get it to start again Marco Pesenti Gritti 16 years ago
2 changed file(s) with 13 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
2222 import os
2323
2424 from sugar.activity import activity
25 from sugar.p2p import network
25 from sugar import network
2626
2727 from xbooktoolbar import XbookToolbar
2828
8181 else:
8282 # Wait for a successful join before trying to get the document
8383 self.connect("joined", self._joined_cb)
84 else:
85 # FIXME: this should be called by activity.Activity on realize
86 self.read_file()
8784
88 def read_file(self):
89 logging.debug('XbookActivity.read_file: ' + self.jobject.file_path)
90 if self.jobject.file_path:
91 self._load_document('file://' + self.jobject.file_path)
85 def read_file(self, file_path):
86 logging.debug('XbookActivity.read_file: ' + file_path)
87 self._load_document('file://' + file_path)
9288
9389 def _download_result_cb(self, getter, tempfile, suggested_name, buddy):
9490 del self._tried_buddies
0 #!/usr/bin/python
1
0 #!/usr/bin/env python
1
22 # Copyright (C) 2006, Red Hat, Inc.
3 #
3 #
44 # This program is free software; you can redistribute it and/or modify
55 # it under the terms of the GNU General Public License as published by
66 # the Free Software Foundation; either version 2 of the License, or
77 # (at your option) any later version.
8 #
8 #
99 # This program is distributed in the hope that it will be useful,
1010 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 # GNU General Public License for more details.
13 #
13 #
1414 # You should have received a copy of the GNU General Public License
1515 # along with this program; if not, write to the Free Software
1616 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18 from sugar.activity import bundlebuilder
19
20 bundlebuilder.start()
17
18 from sugar.activity import bundlebuilder
19
20 bundlebuilder.start()