summaryrefslogtreecommitdiff
path: root/postgresqleu/util/qr.py
AgeCommit message (Collapse)Author
2024-11-12Add support for qrcode library, and make it defaultMagnus Hagander
The qrencode library we've been using is basically dead (and has been for a while), so add support for the newer pure-python qrcode library. We keep support for the qrencode one around, so we don't break things on existing installs, but consider it deprecated and should eventually be removed. Fixes #123
2019-11-05Make loading of qrencode and cairosvg optionalMagnus Hagander
In particular, cairosvg is only used for the PNG format twitter cards, so most functionality exists without it. Make sure we import those modules conditionally only when needed and handle the import exception. Also add an explicit attempt to load them during system startup and write to the log if it fails, so it doesn't do so silently.
2019-04-06Introduce sponsor badge scanning as a benefitMagnus Hagander
This ads the ability to print a QR version of the attendee public token (which is different from the regtoken -- used to pick up a disconnected registration -- and the identity token which is used on tickets to scan at checkin). Combined with this is a new sponsorship benefit to scan badges. Once claimed, that benefit gives access to the badge scanning system for that sponsor, which can assign one or more of their attendees (typically the booth staff) as scanners. These attendees will get access to a web app similar to the one for checkins, and can use it to scan the public tokens of attendee badges. For each such scan they can also make a note attached to it. The sponsorship administrators will then be able to view or download (CSV) the information about those attendees scanned by their "team". The information provided is name, company, country, and email address. If badge scanning is enabled at the conference, each attendee get to choose if they want to allow their badge to be scanned or not by selecting it during the registration or updating it after the registration is complete (similar to how photo consent works). They can change their mind at any point, except if their badge has already been scanned they can no longer opt-out (since for example the sponsor may have taken a screenshot and we can't control that).