Added all the options for crontab. Does all functionality except for -i. Overrides the print usage and print help to display the true usage. Each user has a crontab stored as string in the db file. Effective root users may access any crontab, while others may only do commands to their own. Removing a crontab also removes the jobs associated with it. Removing a crontab simply replaces it with an empty string, and the jobs with an empty list. Crontab lines that begin with # are ignored, and comments that are on a command line, but separated by 2 spaces, are parsed out and ignored as well.
Added all the options for crontab. Does all functionality except for -i. Overrides the print usage and print help to display the true usage. Each user has a crontab stored as string in the db file. Effective root users may access any crontab, while others may only do commands to their own. Removing a crontab also removes the jobs associated with it. Removing a crontab simply replaces it with an empty string, and the jobs with an empty list. Crontab lines that begin with # are ignored, and comments that are on a command line, but separated by 2 spaces, are parsed out and ignored as well.
Now using if-else instead of dict.get because if-else is faster.
defaultdict is faster, not sure why I wasted time with the other implementations. This may introduce a slight overhead of 120 bytes, may switch the lambda function with (bool).
Changed the defaultdict function to bool.
Added functionality for -i, and made the code version independent. I could not test for Python > 2.7 as I did not have the croniter package installed for Python 3.2, but it works for 2.7.
Adjusted to work for Python3 as well.
Forgot to remove main call.
Previously, I was oddly defaulting the user to root, and now that was fixed.
Small stylistic change (used pwd attribute instead of index in getpwuid).
Handles non-existant users inserted by -u, and also imports the entire pwd module since I use 2 methods and the entire module only has 3.
One small confusion about which id to use since only sudo can do anything.
Changed uid back to user_id, and removed the end-of-line comment parsing.
Forced -u to require 1 arg, and removed unused string module import. Also instead of storing an empty string on a delete, store None.
Continuously prompts for removes.
Forgot to adjust help.
Merge pull request #45 from BigFav/fnc4

Long list of edit updates