Andres! Gol de Uruguay?<br><br>Gonzalo<br><br><div class="gmail_quote">On Sun, Jun 13, 2010 at 9:49 PM, Michael Stone <span dir="ltr">&lt;<a href="mailto:michael@laptop.org">michael@laptop.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sun, Jun 13, 2010 at 08:43:19PM -0300, Andrés Ambrois wrote:<br>
&gt;In that case write() was called with file_path=None by copy() and a<br>
&gt;TypeError was raised by os.path.exists().<br>
&gt;<br>
&gt;Signed-off-by: Andrés Ambrois &lt;<a href="mailto:andresambrois@gmail.com">andresambrois@gmail.com</a>&gt;<br>
&gt;---<br>
&gt; src/jarabe/journal/model.py |    2 +-<br>
&gt; 1 files changed, 1 insertions(+), 1 deletions(-)<br>
&gt;<br>
&gt;diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py<br>
&gt;index ae77e72..fd3d3db 100644<br>
&gt;--- a/src/jarabe/journal/model.py<br>
&gt;+++ b/src/jarabe/journal/model.py<br>
&gt;@@ -492,7 +492,7 @@ def write(metadata, file_path=&#39;&#39;, update_mtime=True, transfer_ownership=True):<br>
&gt;                                                  file_path,<br>
&gt;                                                  transfer_ownership)<br>
&gt;     else:<br>
&gt;-        if not os.path.exists(file_path):<br>
&gt;+        if not file_path or not os.path.exists(file_path):<br>
&gt;             raise ValueError(&#39;Entries without a file cannot be copied to &#39;<br>
&gt;                              &#39;removable devices&#39;)<br>
&gt;<br>
&gt;--<br>
&gt;1.6.3.3<br>
<br>
</div>Reviewed-by: Michael Stone &lt;<a href="mailto:michael@laptop.org">michael@laptop.org</a>&gt;<br>
<br>
Looks good to me; merged into my personal tree.<br>
<font color="#888888"><br>
Michael<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gonzalo Odiard<br>Responsable de Desarrollo<br>Sistemas Australes<br><br>