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:
1773398
)
Bugfix
author
Tomas Wenström
<kaka@nanako.(none)>
Mon, 15 Nov 2010 18:41:36 +0000
(19:41 +0100)
committer
Tomas Wenström
<kaka@nanako.(none)>
Mon, 15 Nov 2010 18:41:36 +0000
(19:41 +0100)
automanga.py
patch
|
blob
|
blame
|
history
diff --git
a/automanga.py
b/automanga.py
index
1952156
..
7b6aacf
100755
(executable)
--- a/
automanga.py
+++ b/
automanga.py
@@
-306,6
+306,9
@@
class Directory(object):
def __iter__(self):
return self._opened_nodes.itervalues()
+ def __contains__(self, name):
+ return name in self._nodes
+
def __getitem__(self, name):
if name in self._nodes:
return getattr(self, name)
@@
-445,7
+448,7
@@
class Profile(object):
if manga.title() not in self.mangas:
self.mangas.add_file(manga.title())
file = self.mangas[manga.title()]
- file.page = manga.mark
+ file.page = manga.mark
.name
file.save()
def load_manga(self, path):