diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-13 11:57:39 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-13 11:57:39 (GMT) |
commit | 4ac331200d3a40853ea483fe9840c430d7db35ba (patch) | |
tree | 934451c2b18e3d3077b3e2dcd5d0594c39fecbe2 /activities | |
parent | 1df5b0020df173a5d15c90aa08167c19455cb6e2 (diff) |
Publish a URL property and open it on join.
Diffstat (limited to 'activities')
-rw-r--r-- | activities/web/webactivity.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/activities/web/webactivity.py b/activities/web/webactivity.py index 8880157..452fcae 100644 --- a/activities/web/webactivity.py +++ b/activities/web/webactivity.py @@ -32,6 +32,20 @@ class WebActivity(Activity): self._browser.load_url(_HOMEPAGE) + def join(self, activity_ps): + Activity.join(self, activity_ps) + + url = self._service.get_published_value('URL') + if url: + self._browser.load_url(url) + + def share(self): + Activity.share(self) + + url = self._browser.get_location() + if url: + self._service.set_published_value('URL', url) + def _title_changed_cb(self, embed, pspec): self.set_title(embed.props.title) |