Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
26309f6e
Commit
26309f6e
authored
Jan 29, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import directed graph module on demand
parent
61253864
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
topydo/lib/TodoList.py
topydo/lib/TodoList.py
+5
-2
No files found.
topydo/lib/TodoList.py
View file @
26309f6e
...
...
@@ -21,7 +21,6 @@ A list of todo items.
import
types
from
topydo.lib.Config
import
config
from
topydo.lib.Graph
import
DirectedGraph
from
topydo.lib.TodoListBase
import
TodoListBase
...
...
@@ -38,6 +37,10 @@ def _needs_dependencies(p_function):
def
inner
(
self
,
*
args
,
**
kwargs
):
if
not
self
.
_initialized
:
self
.
_initialized
=
True
from
topydo.lib.Graph
import
DirectedGraph
self
.
_depgraph
=
DirectedGraph
()
build_dependency_information
(
self
)
return
p_function
(
self
,
*
args
,
**
kwargs
)
...
...
@@ -64,7 +67,7 @@ class TodoList(TodoListBase):
# initialize these first because the constructor calls add_list
self
.
_tododict
=
{}
# hash(todo) to todo lookup
self
.
_parentdict
=
{}
# dependency id => parent todo
self
.
_depgraph
=
DirectedGraph
()
self
.
_depgraph
=
None
super
().
__init__
(
p_todostrings
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment