youyesyet.canvasser-app.handlers
Canvasser app event handlers.
add-to-key
(add-to-key db k x)
Return a copy of db with x
added to the front of the list of items held against the key k
add-to-outqueue
(add-to-outqueue db message)
Add the supplied message
to the output queue in this db
.
clear-messages
(clear-messages state)
Return a state like this state except with the error and feedback messages set nil
get-elector
(get-elector elector-id state)
(get-elector elector-id state address)
Return the elector at this address (or the current address if not specified) with this id.
handle-forbidden
(handle-forbidden response & forms)
If response has status 403 (forbidden) redirect to the login page.
remove-from-outqueue
(remove-from-outqueue db x)
Remove x
from the output queue in this db
.