Tomeu,<br>I think we're doing okay with the zipping. It turns out, the problem had to do with the UTF-8 vs UTF-16 file name encoding we passed to the zip library function. After lots of debugging we discovered that error and since then everything has been moving along! We're now playing with extraction and changing the icon used for packed/unpacked bundles.<br>
Nolan<br><br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 12:26 PM, Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@tomeuvizoso.net">tomeu@tomeuvizoso.net</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;">
Hi Nolan,<br>
<br>
how is work going? Managed to get that issue solved with Emiliano's hint?<br>
<br>
Regards,<br>
<font color="#888888"><br>
Tomeu<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Wed, Nov 19, 2008 at 12:57 PM, Emiliano Pastorino<br>
<<a href="mailto:epastorino@plan.ceibal.edu.uy">epastorino@plan.ceibal.edu.uy</a>> wrote:<br>
> Maybe this helps:<br>
> <a href="http://www.python.org/doc/2.5/tut/node13.html#SECTION0013400000000000000000" target="_blank">http://www.python.org/doc/2.5/tut/node13.html#SECTION0013400000000000000000</a><br>
> It's a multi threading example using zipfile and threading modules<br>
><br>
> On Tue, Nov 18, 2008 at 5:46 PM, Nolan Hughes <<a href="mailto:nolan.e.hughes@gmail.com">nolan.e.hughes@gmail.com</a>><br>
> wrote:<br>
>><br>
>> I'm part of team developing the Bundle Activity which will handle zip (and<br>
>> other) archives and have run into a problem with the Zip library in Python.<br>
>> We are currently trying to zip a list of files, and then have the program<br>
>> perform other operations with the resulting zip file. The problem is that<br>
>> Python seems to run asynchronously, so the program execution skips the zip<br>
>> file completion and goes on to the next instructions (which is NOT what we<br>
>> want). In other words, the instructions that handle the resulting zip file<br>
>> get run before the zip file is completely finished. Our code looks like:<br>
>><br>
>> myZip = zipfile.ZipFile(file_name, 'w')<br>
>> try:<br>
>> for a_file in file_list:<br>
>> myZip.write(a_file)<br>
>> finally:<br>
>> myZip.close()<br>
>><br>
>> # zip handling instructions<br>
>> shutil.copy(file_name, journal_location)<br>
>> # ... put the zip file in the journal ...<br>
>> ....<br>
>><br>
>> What can we do to have this work?<br>
>><br>
>> Thanks,<br>
>><br>
>> Nolan<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Sugar mailing list<br>
>> <a href="mailto:Sugar@lists.laptop.org">Sugar@lists.laptop.org</a><br>
>> <a href="http://lists.laptop.org/listinfo/sugar" target="_blank">http://lists.laptop.org/listinfo/sugar</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Emiliano Pastorino<br>
> LATU - Plan Ceibal<br>
> Av. Italia 6201 CP: 11500, Montevideo, Uruguay<br>
> Tel: (598 2) 601 3724 int.: 469<br>
><br>
> _______________________________________________<br>
> Sugar mailing list<br>
> <a href="mailto:Sugar@lists.laptop.org">Sugar@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/sugar" target="_blank">http://lists.laptop.org/listinfo/sugar</a><br>
><br>
><br>
</div></div></blockquote></div><br>