move genericcomicreader to a single file for now

This commit is contained in:
Noé Rubinstein 2011-09-04 01:42:28 +02:00 committed by Romain Bignon
commit f5aa37e0c2
8 changed files with 11 additions and 6 deletions

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.capabilities.gallery.genericcomicreader.backend import GenericComicReaderBackend, DisplayPage from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderBackend, DisplayPage
__all__ = ['EatmangaBackend'] __all__ = ['EatmangaBackend']

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.capabilities.gallery.genericcomicreader.backend import GenericComicReaderBackend, DisplayPage from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderBackend, DisplayPage
__all__ = ['MangafoxBackend'] __all__ = ['MangafoxBackend']

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.capabilities.gallery.genericcomicreader.backend import GenericComicReaderBackend, DisplayPage from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderBackend, DisplayPage
__all__ = ['MangahereBackend'] __all__ = ['MangahereBackend']

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.capabilities.gallery.genericcomicreader.backend import GenericComicReaderBackend, DisplayPage from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderBackend, DisplayPage
__all__ = ['MangareaderBackend'] __all__ = ['MangareaderBackend']

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.capabilities.gallery.genericcomicreader.backend import GenericComicReaderBackend, DisplayPage from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderBackend, DisplayPage
__all__ = ['MangatoshokanBackend'] __all__ = ['MangatoshokanBackend']

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.capabilities.gallery.genericcomicreader.backend import GenericComicReaderBackend, DisplayPage from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderBackend, DisplayPage
__all__ = ['SimplyreaditBackend'] __all__ = ['SimplyreaditBackend']

View file

@ -24,6 +24,7 @@ import re
from weboob.capabilities.gallery import ICapGallery, BaseGallery, BaseImage from weboob.capabilities.gallery import ICapGallery, BaseGallery, BaseImage
from weboob.tools.backend import BaseBackend from weboob.tools.backend import BaseBackend
from weboob.tools.browser import BaseBrowser, BasePage from weboob.tools.browser import BaseBrowser, BasePage
from weboob.tools.test import BackendTest
__all__ = ['GenericComicReaderBackend'] __all__ = ['GenericComicReaderBackend']
@ -74,6 +75,10 @@ class GenericComicReaderBackend(BaseBackend, ICapGallery):
def create_default_browser(self): def create_default_browser(self):
b = self.create_browser(self.BROWSER_PARAMS) b = self.create_browser(self.BROWSER_PARAMS)
b.PAGES = self.PAGES b.PAGES = self.PAGES
try:
b.DOMAIN = self.DOMAIN
except AttributeError:
pass
return b return b
def iter_gallery_images(self, gallery): def iter_gallery_images(self, gallery):