def activate_changes(self, generate_page = True): if generate_page: pass with db.get_connection(): db.sync_all(db.version_current, db.version_new) db.cleanup_orphan_images()
def delete_text_image(self, area_name, image_id): db.delete_text_image(area_name, image_id) db.cleanup_orphan_images()
def revert_text(self, area_name): db.sync_text_area(area_name, db.version_new, db.version_current) db.cleanup_orphan_images()
def revert_gallery(self, area_name): db.sync_gallery_area(area_name, db.version_new, db.version_current) db.cleanup_orphan_images()