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
fd52d3fc
Commit
fd52d3fc
authored
Oct 12, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some leftover attribute[number]
parent
756616db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
AddCommand.py
AddCommand.py
+2
-2
ArchiveCommand.py
ArchiveCommand.py
+1
-1
Filter.py
Filter.py
+2
-1
No files found.
AddCommand.py
View file @
fd52d3fc
...
...
@@ -49,9 +49,9 @@ class AddCommand(Command.Command):
continue
if
p_tag
==
'after'
:
self
.
todolist
.
add_dependency
(
self
.
todo
.
attributes
[
'number'
]
,
value
)
self
.
todolist
.
add_dependency
(
self
.
todo
list
.
number
(
self
.
todo
)
,
value
)
elif
p_tag
==
'before'
or
p_tag
==
'partof'
:
self
.
todolist
.
add_dependency
(
value
,
self
.
todo
.
attributes
[
'number'
]
)
self
.
todolist
.
add_dependency
(
value
,
self
.
todo
list
.
number
(
self
.
todo
)
)
self
.
todo
.
remove_tag
(
p_tag
,
raw_value
)
...
...
ArchiveCommand.py
View file @
fd52d3fc
...
...
@@ -9,4 +9,4 @@ class ArchiveCommand(Command.Command):
def
execute
(
self
):
for
todo
in
[
t
for
t
in
self
.
todolist
.
todos
()
if
t
.
is_completed
()]:
self
.
archive
.
add_todo
(
todo
)
self
.
todolist
.
delete
(
todo
.
attributes
[
'number'
]
)
self
.
todolist
.
delete
(
self
.
todolist
.
number
(
todo
)
)
Filter.py
View file @
fd52d3fc
...
...
@@ -69,7 +69,8 @@ class DependencyFilter(Filter):
"""
Returns True when there are no children that are uncompleted yet.
"""
children
=
self
.
todolist
.
children
(
p_todo
.
attributes
[
'number'
])
number
=
self
.
todolist
.
number
(
p_todo
)
children
=
self
.
todolist
.
children
(
number
)
uncompleted
=
[
todo
for
todo
in
children
if
not
todo
.
is_completed
()]
return
not
uncompleted
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