How to use the sigal.signals.gallery_build function in sigal

To help you get started, we’ve selected a few sigal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github saimn / sigal / sigal / plugins / feeds.py View on Github external
def register(settings):
    signals.gallery_build.connect(generate_feeds)
github saimn / sigal / sigal / plugins / media_page.py View on Github external
def register(settings):
    signals.gallery_build.connect(generate_media_pages)
github saimn / sigal / sigal / gallery.py View on Github external
file=self.progressbar_target) as albums:
                for album in albums:
                    if album.albums:
                        if album.medias:
                            self.logger.warning(
                                "Album %s contains sub-albums and images. "
                                "Please move images to their own sub-album. "
                                "Images in album %s will not be visible.",
                                album.title, album.title
                            )
                        album_list_writer.write(album)
                    else:
                        album_writer.write(album)
        print('')

        signals.gallery_build.send(self)
github saimn / sigal / sigal / plugins / upload_s3.py View on Github external
def register(settings):
    if settings.get('upload_s3_options'):
        signals.gallery_build.connect(upload_s3)
    else:
        logger.warning('Upload to S3 is not configured.')
github saimn / sigal / sigal / plugins / extended_caching.py View on Github external
def register(settings):
    signals.gallery_build.connect(save_cache)
    signals.album_initialized.connect(load_exif)
github saimn / sigal / sigal / plugins / compress_assets.py View on Github external
def register(settings):
    if settings['write_html']:
        signals.gallery_build.connect(compress_gallery)