Bugfix
authorTomas Wenström <kaka@nanako.(none)>
Mon, 15 Nov 2010 18:41:36 +0000 (19:41 +0100)
committerTomas Wenström <kaka@nanako.(none)>
Mon, 15 Nov 2010 18:41:36 +0000 (19:41 +0100)
automanga.py

index 1952156..7b6aacf 100755 (executable)
@@ -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):