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
167f91b4
Commit
167f91b4
authored
Jun 13, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix class attributes, instantiate in __init__.
parent
56104e70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
TodoBase.py
TodoBase.py
+3
-3
TodoFile.py
TodoFile.py
+0
-1
TodoList.py
TodoList.py
+1
-1
No files found.
TodoBase.py
View file @
167f91b4
...
...
@@ -19,10 +19,10 @@ class TodoBase(object):
in a todo item.
"""
src
=
None
fields
=
{}
def
__init__
(
self
,
p_src
):
self
.
src
=
""
self
.
fields
=
{}
self
.
set_text
(
p_src
)
def
tag_value
(
self
,
p_key
):
...
...
TodoFile.py
View file @
167f91b4
...
...
@@ -8,7 +8,6 @@ class TodoFile(object):
to.
"""
path
=
""
def
__init__
(
self
,
p_path
):
self
.
path
=
p_path
...
...
TodoList.py
View file @
167f91b4
...
...
@@ -12,13 +12,13 @@ class TodoList(object):
The list is usually a complete list found in the program's input (e.g. a
todo.txt file), not an arbitrary set of todo items.
"""
_todos
=
[]
def
__init__
(
self
,
p_todostrings
):
"""
Should be given a list of strings, each element a single todo string.
The string will be parsed.
"""
self
.
_todos
=
[]
for
string
in
p_todostrings
:
self
.
_todos
.
append
(
Todo
.
Todo
(
string
))
...
...
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