Dolda2000 GitWeb
/
automanga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved main-script structure slightly.
[automanga.git]
/
manga
/
profile.py
diff --git
a/manga/profile.py
b/manga/profile.py
index
2620a98
..
27bf86e
100644
(file)
--- 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)
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)
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")
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]
def getalias(self, nm):
return self.getaliases()[nm]