X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Fprofile.py;h=27bf86e7fa3d5fb7c8459424eee4d38c8bc278cb;hb=477d3ba08adf5083f22a92a9836d32dfa679472a;hp=2620a9853fb9ee7768af3a81a97067e28ff9d5d9;hpb=434236682e0d553965b2912d1d307e3b1473c491;p=automanga.git diff --git a/manga/profile.py b/manga/profile.py index 2620a98..27bf86e 100644 --- a/manga/profile.py +++ b/manga/profile.py @@ -89,6 +89,9 @@ class manga(object): import lib return lib.findlib(self.libnm).byid(self.id) + def save(self): + pass + class memmanga(manga): def __init__(self, profile, libnm, id): super(memmanga, self).__init__(profile, libnm, id) @@ -193,6 +196,9 @@ class profile(object): for nm, (libnm, id) in map.iteritems(): f.write(consline("alias", nm, libnm, id) + "\n") + def file(self, name, mode="r"): + return openwdir(pj(self.dir, name), mode) + def getalias(self, nm): return self.getaliases()[nm]