Esempio n. 1
0
def get_recursive_archive_handler(path, type=None, **kwargs):
    ''' Same as <get_archive_handler> but the handler will transparently handle
    archives within archives.
    '''
    archive = get_archive_handler(path, type=type)
    if archive is None:
        return None
    # XXX: Deferred import to avoid circular dependency
    from mcomix.archive import archive_recursive
    return archive_recursive.RecursiveArchive(archive, **kwargs)
Esempio n. 2
0
def get_recursive_archive_handler(path, destination_dir, type=None):
    """ Same as <get_archive_handler> but the handler will transparently handle
    archives within archives.
    """
    archive = get_archive_handler(path, type=type)
    if archive is None:
        return None
    # XXX: Deferred import to avoid circular dependency
    from mcomix.archive import archive_recursive
    return archive_recursive.RecursiveArchive(archive, destination_dir)
Esempio n. 3
0
 def handler(self, archive):
     main_archive = self.base_handler(archive)
     return archive_recursive.RecursiveArchive(main_archive, self.dest_dir)