Oh, I did not see it because is part of the original patch. Guess we have the same typo in mainstream. Want me to send a patch for mainstream too?<br><br><div class="gmail_quote">On Sat, Dec 11, 2010 at 1:02 PM, Aleksey Lim <span dir="ltr"><<a href="mailto:alsroot@member.fsf.org">alsroot@member.fsf.org</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;">Reviewed-by: Aleksey Lim <<a href="mailto:alsroot@member.fsf.org">alsroot@member.fsf.org</a>><br>
<div class="im"><br>
On Fri, Dec 10, 2010 at 11:56:39AM -0300, Martin Abente wrote:<br>
> From: <a href="mailto:shanjit@seeta.in">shanjit@seeta.in</a> <<a href="mailto:shanjit@seeta.in">shanjit@seeta.in</a>><br>
><br>
</div><div class="im">> diff --git a/src/jarabe/journal/misc.py b/src/jarabe/journal/misc.py<br>
> index 6e3cb95..ec1f53d 100644<br>
> --- a/src/jarabe/journal/misc.py<br>
> +++ b/src/jarabe/journal/misc.py<br>
</div><div class="im">> @@ -229,6 +229,35 @@ def resume(metadata, bundle_id=None):<br>
> else:<br>
> activityfactory.create_with_object_id(bundle, object_id)<br>
><br>
> +def _launch_bundle(bundle):<br>
> + registry = bundleregistry.get_registry()<br>
> + logging.debug('activityfactory.creating bundle with id %r',<br>
> + bundle.get_bundle_id())<br>
> + installed_bundle = registry.get_bundle(bundle.get_bundle_id())<br>
> + if installed_bundle:<br>
> + activityfactory.create(installed_bundle)<br>
> + else:<br>
> + logging.error('Bundle %r is not installed.',<br>
> + bundle.get_bundle_id())<br>
> +<br>
> +def _downgrade_option_alert(bundle):<br>
> + alert = ConfirmationAlert()<br>
> + alert.props.title = _('Older Version Of %s Activity') % (bundle.get_name())<br>
<br>
> + alert.props.msg = _('Do you want to downgrade to version %s\<br>
> + ') % (bundle.get_activity_version())<br>
-----<br>
> + alert.props.msg = _('Do you want to downgrade to version %s') % \<br>
> + bundle.get_activity_version()<br>
</div>a typo<br>
<div class="im"><br>
> + alert.connect('response', _downgrade_alert_response_cb, bundle)<br>
> + journalwindow.get_journal_window().add_alert(alert)<br>
> + alert.show()<br>
> +<br>
> +def _downgrade_alert_response_cb(alert, response_id, bundle):<br>
> + if response_id is gtk.RESPONSE_OK:<br>
> + journalwindow.get_journal_window().remove_alert(alert)<br>
> + registry = bundleregistry.get_registry()<br>
> + registry.install(bundle, force_downgrade=True)<br>
> + _launch_bundle(bundle)<br>
> + elif response_id is gtk.RESPONSE_CANCEL:<br>
> + journalwindow.get_journal_window().remove_alert(alert)<br>
> +<br>
> def is_activity_bundle(metadata):<br>
> mime_type = metadata.get('mime_type', '')<br>
> return mime_type == ActivityBundle.MIME_TYPE or \<br>
<br>
</div>--<br>
<font color="#888888">Aleksey<br>
</font></blockquote></div><br>