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
5142c2b4
Commit
5142c2b4
authored
Jun 13, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return the set.
parent
c9873a5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
TodoList.py
TodoList.py
+4
-0
No files found.
TodoList.py
View file @
5142c2b4
...
@@ -69,6 +69,8 @@ class TodoList(object):
...
@@ -69,6 +69,8 @@ class TodoList(object):
projects
=
todo
.
projects
()
projects
=
todo
.
projects
()
result
=
result
.
union
(
projects
)
result
=
result
.
union
(
projects
)
return
result
def
contexts
(
self
):
def
contexts
(
self
):
""" Returns a set of all contexts in this list. """
""" Returns a set of all contexts in this list. """
result
=
set
()
result
=
set
()
...
@@ -76,6 +78,8 @@ class TodoList(object):
...
@@ -76,6 +78,8 @@ class TodoList(object):
contexts
=
todo
.
contexts
()
contexts
=
todo
.
contexts
()
result
=
result
.
union
(
contexts
)
result
=
result
.
union
(
contexts
)
return
result
def
set_priority
(
self
,
p_number
,
p_priority
):
def
set_priority
(
self
,
p_number
,
p_priority
):
""" Sets the priority of the todo with the given number. """
""" Sets the priority of the todo with the given number. """
self
.
todo
(
p_number
).
set_priority
(
p_priority
)
self
.
todo
(
p_number
).
set_priority
(
p_priority
)
...
...
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