<br><br><div class="gmail_quote">2012/2/10 Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org">manuq@laptop.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
El día 10 de febrero de 2012 10:49, <<a href="mailto:godiard@sugarlabs.org">godiard@sugarlabs.org</a>> escribió:<br>
<div class="im">> From: Agustin Zubiaga <<a href="mailto:aguz@sugarlabs.org">aguz@sugarlabs.org</a>><br>
><br>
> This enable to other activities to identify the data<br>
<br>
</div>Nice!<br>
<div class="im"><br>
> Signed-off-by: Agustin Zubiaga <<a href="mailto:aguz@sugarlabs.org">aguz@sugarlabs.org</a>><br>
> Reviewed-by: Gonzalo Odiard <<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>><br>
<br>
</div>Tested-by: Manuel Quiñones <<a href="mailto:manuq@laptop.org">manuq@laptop.org</a>><br>
<div><div class="h5"><br>
> ---<br>
> activity.py | 1 +<br>
> activity/<a href="http://activity.info" target="_blank">activity.info</a> | 1 +<br>
> activity/mimetypes.xml | 7 +++++++<br>
> 3 files changed, 9 insertions(+), 0 deletions(-)<br>
> create mode 100644 activity/mimetypes.xml<br>
><br>
> diff --git a/activity.py b/activity.py<br>
> index 88313e2..306b081 100644<br>
> --- a/activity.py<br>
> +++ b/activity.py<br>
> @@ -166,6 +166,7 @@ class StopWatchActivity(Activity):<br>
> self.gui.set_all(q)<br>
><br>
> def write_file(self, file_path):<br>
> + self.metadata['mime_type'] = 'application/x-stopwatch-activity'<br>
> q = self.gui.get_all()<br>
> f = open(file_path, 'w')<br>
> cPickle.dump(q, f)<br>
> diff --git a/activity/<a href="http://activity.info" target="_blank">activity.info</a> b/activity/<a href="http://activity.info" target="_blank">activity.info</a><br>
> index c8fd3da..5ccabfa 100644<br>
> --- a/activity/<a href="http://activity.info" target="_blank">activity.info</a><br>
> +++ b/activity/<a href="http://activity.info" target="_blank">activity.info</a><br>
> @@ -6,3 +6,4 @@ icon = activity-stopwatch<br>
> activity_version = 13<br>
> show_launcher = yes<br>
> license = GPLv3+<br>
> +mime_types = application/x-stopwatch-activity;<br>
> diff --git a/activity/mimetypes.xml b/activity/mimetypes.xml<br>
> new file mode 100644<br>
> index 0000000..2426820<br>
> --- /dev/null<br>
> +++ b/activity/mimetypes.xml<br>
> @@ -0,0 +1,7 @@<br>
> +<?xml version="1.0" encoding="UTF-8"?><br>
> +<mime-info xmlns="<a href="http://www.freedesktop.org/standards/shared-mime-info" target="_blank">http://www.freedesktop.org/standards/shared-mime-info</a>"><br>
> + <mime-type type="application/x-stopwatch-activity"><br>
> + <comment xml:lang="en">StopWatch Activity</comment><br>
> + <glob pattern="*.stopwatch"/><br>
> + </mime-type><br>
> +</mime-info><br>
> --<br>
> 1.7.7.6<br>
><br>
</div></div>> _______________________________________________<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>
<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>Thanks applied as </div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://git.sugarlabs.org/stopwatch/stopwatch/commit/6f5683780a501e07498914a5049c39bd15f61650">http://git.sugarlabs.org/stopwatch/stopwatch/commit/6f5683780a501e07498914a5049c39bd15f61650</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
--<br>
.. manuq ..<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></span></blockquote></div><br>