38 Commits

Author SHA1 Message Date
Josh Holtrop
585d3d65e1 added DataStore.createTask() 2011-01-02 14:23:43 -05:00
Josh Holtrop
6574f4d4fd added Task class and DataStore.getTaskByID() 2011-01-02 14:04:50 -05:00
Josh Holtrop
af10a21be7 added DataStore.updateCurrentTask() 2011-01-02 12:03:10 -05:00
Josh Holtrop
855068c43f added DataStore.getCurrentTask() and TaskRef class 2011-01-02 11:53:25 -05:00
Josh Holtrop
e6d8d36aeb loop to handle commands & possibly re-show window 2011-01-01 23:14:12 -05:00
Josh Holtrop
684834806e updated database schema again for dates and hours 2011-01-01 23:06:10 -05:00
Josh Holtrop
78cb101357 Command constructor: default_time optional 2011-01-01 17:51:04 -05:00
Josh Holtrop
67a04df59a fix handling date of "yesterday" 2011-01-01 17:34:08 -05:00
Josh Holtrop
4779e75ffd Changed dbfile argument to be optional, default to ~/.dwtt.db 2011-01-01 17:30:19 -05:00
Josh Holtrop
6a982d3a8c reworked command processing, "show" aliases to "status", updated tests to pass 2011-01-01 17:19:00 -05:00
Josh Holtrop
2bce1b33e1 change show command to status, added command aliases 2011-01-01 16:04:36 -05:00
Josh Holtrop
fac74e651a remove @ prefix for timespecs 2010-12-29 00:22:30 -05:00
Josh Holtrop
9ea2fbed41 beautify Command to string a little 2010-12-29 00:20:57 -05:00
Josh Holtrop
0eb5a89d18 absolute times before 7:00 without AM/PM default to PM 2010-12-29 00:19:57 -05:00
Josh Holtrop
3a225f002c bugfix in parseCommandLine() and parseTimeSpec(), tests passing 2010-12-29 00:18:05 -05:00
Josh Holtrop
ab0f265baa added an actual "start" command and test (failing) 2010-12-29 00:15:27 -05:00
Josh Holtrop
51ab4c5d7e Command.parseTimeSpec(): fix date parsing 2010-12-29 00:10:44 -05:00
Josh Holtrop
73c1310157 fix up relative time in Command.parseTimeSpec() 2010-12-29 00:06:32 -05:00
Josh Holtrop
9431ff1c88 whoops, return the_time from Command.parseTimeSpec() 2010-12-29 00:03:55 -05:00
Josh Holtrop
cc54eb8883 added Command.__str__(), setting the_time with relative time offset 2010-12-29 00:02:05 -05:00
Josh Holtrop
2982469274 add .gitignore for .db files 2010-12-28 23:46:14 -05:00
Josh Holtrop
40e36c4a02 separate local module imports 2010-12-28 19:05:08 -05:00
Josh Holtrop
be2789de8d remove -c option, made its behavior the default, fix DataStore bug 2010-12-28 19:02:28 -05:00
Josh Holtrop
ec4383c993 tasks.parentid is a foreign key into itself 2010-12-27 15:02:35 -05:00
Josh Holtrop
1d9f305cf9 moved sqlite code to DataStore.py 2010-12-26 22:09:23 -05:00
Josh Holtrop
7765a7cb0b filled out Command.parseTimeSpec() 2010-12-13 19:28:55 -05:00
Josh Holtrop
8dc5d28cee added test script to exercise some unit test cases 2010-12-11 10:14:25 -05:00
Josh Holtrop
70f57c4ce7 filled out Command.parseCommandLine() 2010-12-11 09:55:07 -05:00
Josh Holtrop
3af40dc453 add Command class 2010-12-09 21:47:16 -05:00
Josh Holtrop
920897cf2f fixed usage of "when" sqlite keyword; made dbfile a required argument 2010-12-06 22:37:57 -05:00
Josh Holtrop
9a70a7e9f8 reworked database schema again with foreign keys 2010-12-06 22:24:33 -05:00
Josh Holtrop
27ba8d30d9 reformatted SQL statements 2010-12-05 22:48:22 -05:00
Josh Holtrop
df2d40afb2 passing command back to main program 2010-12-03 00:45:29 -05:00
Josh Holtrop
40d433d815 added a stock OK button, increased minimum width of the command window 2010-12-02 23:27:19 -05:00
Josh Holtrop
299eb9b615 replace Button with an Entry object 2010-12-02 18:15:55 -05:00
Josh Holtrop
75059ed223 added skeleton CmdWindow class 2010-12-02 17:59:11 -05:00
Josh Holtrop
b0b8ce1716 initial commit of dwtt, skeleton for now 2010-12-02 16:29:45 -05:00
Josh Holtrop
2185408b45 initial 2010-12-02 14:28:23 -05:00