Logo Search packages:      
Sourcecode: yagtd version File versions

def yagtd::GTD::do_save (   self,
  todotxt 
)

Save to a todotxt file:
GTD> save [path/to/todo.txt]

Definition at line 945 of file yagtd.py.

00945                               :
        """Save to a todotxt file:
        GTD> save [path/to/todo.txt]"""

        if todotxt == "": todotxt = self.todotxt
        try:
            f = open(todotxt, 'w')
            try:
                for t in self.todo:
                    f.write(self._dump_line(t) + "\n")
            finally:
                f.close()
                print "%d tasks saved as '%s'" % (len(self.todo), todotxt)
        except IOError, err:
            print err  # and continue

    def do_archive(self, donetxt):


Generated by  Doxygen 1.6.0   Back to index