Logo Search packages:      
Sourcecode: yagtd version File versions  Download package

def gtd::ToDo::_last_id (   self ) [private]
Return the last id of the to-do list.

Definition at line 300 of file gtd.py.

        """Return the last id of the to-do list."""
        idxes = [ t['id'] for t in self[:] ]  # list of indexes
        if idxes:
            return max(idxes)
            return 0

Generated by  Doxygen 1.6.0   Back to index