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
34a5d7a4
Commit
34a5d7a4
authored
Jun 06, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide getter for the todos inside a view.
parent
92f078b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
topydo/commands/EditCommand.py
topydo/commands/EditCommand.py
+1
-1
topydo/lib/View.py
topydo/lib/View.py
+4
-0
No files found.
topydo/commands/EditCommand.py
View file @
34a5d7a4
...
@@ -118,7 +118,7 @@ class EditCommand(MultiCommand, ExpressionCommand):
...
@@ -118,7 +118,7 @@ class EditCommand(MultiCommand, ExpressionCommand):
return
call
([
editor
,
archive
])
==
0
return
call
([
editor
,
archive
])
==
0
if
self
.
is_expression
:
if
self
.
is_expression
:
self
.
todos
=
self
.
_view
().
_viewdata
self
.
todos
=
self
.
_view
().
todos
()
else
:
else
:
self
.
get_todos
(
self
.
args
)
self
.
get_todos
(
self
.
args
)
...
...
topydo/lib/View.py
View file @
34a5d7a4
...
@@ -73,5 +73,9 @@ class View(object):
...
@@ -73,5 +73,9 @@ class View(object):
return
printer
.
print_list
(
self
.
_viewdata
)
return
printer
.
print_list
(
self
.
_viewdata
)
def
todos
(
self
):
""" Returns a sorted and filtered list of todos in this view. """
return
self
.
_viewdata
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
_printer
.
print_list
(
self
.
_viewdata
)
return
self
.
_printer
.
print_list
(
self
.
_viewdata
)
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