[Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

Martin Langhoff martin.langhoff at gmail.com
Wed Oct 3 11:08:43 EDT 2012


On Wed, Oct 3, 2012 at 6:52 AM, Manuel Kaufmann <humitos at gmail.com> wrote:
> On Tue, Oct 2, 2012 at 5:35 PM, Martin Langhoff
> <martin.langhoff at gmail.com> wrote:
>> Actually, the answer is to avoid datetime. It's fine for high level
>> work; when you care about times defined as epoch values, you
>
> Yes, you are right. But datetime is much more elegant

Not at all. Ignoring the computer is not elegance.

In this case, datetime is horrible. If you are writing a calendar
(say, google calendar) yes, datetime is your friend.


> Anyway, I think we must add this function inside a GObject.idle_add()

Note that this function needs to run only _once_ and it is extremely cheap/fast.

Large files do not take a long time to be removed. Try it.



m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the Sugar-devel mailing list