Participant utils
participant.utils:
country(request)
Get country code of requesting ip
Source code in participant/utils.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
get_country_code(ip_address)
Get country code from given ip address
Source code in participant/utils.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
get_or_create_participant(request)
Get a participant from URL, the session, or create/add a new one
Source code in participant/utils.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
located_in_nl(request)
Return True if the requesting IP-address is located in NL
Source code in participant/utils.py
14 15 16 |
|
set_participant(request, participant)
Set a participant to the session
Source code in participant/utils.py
116 117 118 119 120 121 |
|
visitor_ip_address(request)
Get visitor ip address from request
Source code in participant/utils.py
64 65 66 67 68 69 70 71 72 73 |
|