pyatcron-devel-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pyatcron-devel-list] The previous changes plus some more


From: Julien Olivier
Subject: [Pyatcron-devel-list] The previous changes plus some more
Date: Tue, 13 Apr 2004 09:29:43 +0100

Hi

The attached patch contains the changes submitted in my last email, plus
some other things:
 - after parsing the crontab file, I sorted the seconds, minutes, hours,
monthdays, weekdays and months tables and removed all the duplicates
(1,5,3,5,4 would now be 1,3,4,5). I also changed all occurences of 7
(sunday) to 0 (also sunday) in the weekdays (0,1,2,7,5 would now be
0,1,2,5). As a result, it should be quicker to determine the next run
time (because there are less values in the tables).
 - I modified the scheduleList class so that it automatically gives ids
to its entries. I also added a getScheduleById function to retrieve a
schedule given its id. I use it to link the task list in the GUI to the
internat task list.
 - I implemented activation/deactivation of tasks in the UI (and linked
it to the backend).

The code looks a bit crap in some parts (especially in the parser code I
modified), but I'm still learning Python :) So feel free to modify it if
I did it the wrong way (which I'm sure I did).

I also attached a slightly modified version of the diagram, that takes
into account the changes I did in the code.

PS: To Xavier: I could commit it myself, but I prefer to let you look at
my code first, as I'm not sure it doesn't break what you're working on
now, or what you plan to do later. More over, as I said, I'm not sure I
did everything the right way, as I still think the "C" way :)

-- 
Julien Olivier <address@hidden>

Attachment: patches
Description: Text Data

Attachment: class-diagram.dia
Description: application/dia-diagram


reply via email to

[Prev in Thread] Current Thread [Next in Thread]