Commit d894e35f authored by Bram Schoenmakers's avatar Bram Schoenmakers

Enable archiving functionality.

parent dec2092a
import Command import Command
import Config
class ArchiveCommand(Command.Command): class ArchiveCommand(Command.Command):
def __init__(self, p_todolist, p_archive_list): def __init__(self, p_todolist, p_archive_list):
......
...@@ -56,7 +56,7 @@ class CLIApplication(object): ...@@ -56,7 +56,7 @@ class CLIApplication(object):
command.execute() command.execute()
if archive.is_dirty(): if archive.is_dirty():
archive_file.write(archive) archive_file.write(str(archive))
def run(self): def run(self):
...@@ -101,7 +101,7 @@ class CLIApplication(object): ...@@ -101,7 +101,7 @@ class CLIApplication(object):
exit(1) exit(1)
if self.todolist.is_dirty(): if self.todolist.is_dirty():
# self.archive() self.archive()
todofile.write(str(self.todolist)) todofile.write(str(self.todolist))
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment