khufu.images.imagingModal module

An image and modal – click on the image to present the modal of the larger image with download options

Author

David Young

class imagingModal(log, dbConn=False, imagePath=False, display=False, modalHeaderContent='', modalFooterContent='', modalFooterButtons=[], stampWidth=180, modalImageWidth=400, downloadLink=False)[source]

Bases: object

An image and modal – click on the image to present the modal of the larger image with download options

Key Arguments

  • dbConn – mysql database connection

  • log – logger

  • display – [ rounded | circle | polaroid | False ]

  • imagePath – path to the image to be displayed

  • modalHeaderContent – the heading for the modal

  • modalFooterContent – the footer (usually buttons)

  • stampWidth – 180

  • modalImageWidth – 400

  • downloadLink – False

close()[source]
get()[source]

get the object

Return

  • imageModal

_create_image(width=False)[source]

*create the html for the image

  • width – image width*

Return

  • thisImage – the image created

_create_modal()[source]

create modal

Return

  • imageModal – the image modal