Dolda2000 GitWeb
/
automanga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9bf4bd
)
Reimplemented pagetree.idlist nicer.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 11 May 2013 15:02:17 +0000
(17:02 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 11 May 2013 15:02:17 +0000
(17:02 +0200)
manga/lib.py
patch
|
blob
|
blame
|
history
diff --git
a/manga/lib.py
b/manga/lib.py
index
2a11cb1
..
373c932
100644
(file)
--- a/
manga/lib.py
+++ b/
manga/lib.py
@@
-46,8
+46,8
@@
class pagetree(object):
"""Returns a list of the IDs necessary to resolve this node
from the root node."""
if len(self.stack) == 0:
- r
aise Exception("Cannot get ID list on root node.")
- return
[n.id for n, i in self.stack[1:]]
+ [self.id]
+ r
eturn []
+ return
self.stack[-1][0].idlist()
+ [self.id]
def byidlist(self, idlist):
if len(idlist) == 0: