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"><<a href="mailto:michael@laptop.org">michael@laptop.org</a>></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>
>In that case write() was called with file_path=None by copy() and a<br>
>TypeError was raised by os.path.exists().<br>
><br>
>Signed-off-by: Andrés Ambrois <<a href="mailto:andresambrois@gmail.com">andresambrois@gmail.com</a>><br>
>---<br>
> src/jarabe/journal/model.py | 2 +-<br>
> 1 files changed, 1 insertions(+), 1 deletions(-)<br>
><br>
>diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py<br>
>index ae77e72..fd3d3db 100644<br>
>--- a/src/jarabe/journal/model.py<br>
>+++ b/src/jarabe/journal/model.py<br>
>@@ -492,7 +492,7 @@ def write(metadata, file_path='', update_mtime=True, transfer_ownership=True):<br>
> file_path,<br>
> transfer_ownership)<br>
> else:<br>
>- if not os.path.exists(file_path):<br>
>+ if not file_path or not os.path.exists(file_path):<br>
> raise ValueError('Entries without a file cannot be copied to '<br>
> 'removable devices')<br>
><br>
>--<br>
>1.6.3.3<br>
<br>
</div>Reviewed-by: Michael Stone <<a href="mailto:michael@laptop.org">michael@laptop.org</a>><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>