1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
Stefan Pratter 4b10b8e41d Support 202304 (#1383)
* Don't allow the first and last addresses being assigned #1241

Show all e-mail addresses associated with a username #1291

Add permission 'manage peering sessions' #1290

Put an Icon next to user name on https://www.peeringdb.com/org/nnnn#users if the user is using U2F #1238

Tie TOTP devices and Webauthn Security Keys to the user account #1339

v2 Search (#1204)

pin django peeringdb 3.0.1 and poetry relock

linting

* fix codeql warning: DOM text reinterpreted as HTML

* fix global stats tests

---------

Co-authored-by: 20C <code@20c.com>
2023-05-16 18:04:05 +00:00

35 lines
916 B
Markdown

Generated from util.py on 2023-04-12 10:09:44.563425
# peeringdb_server.util
Assorted utility functions for peeringdb site templates.
# Functions
---
## coerce_ipaddr
`def coerce_ipaddr(value)`
ipaddresses can have multiple formats that are equivalent.
This function will standardize a ipaddress string.
Note: this function is not a validator. If it errors
It will return the original string.
---
## generate_social_media_render_data
`def generate_social_media_render_data(data, social_media, insert_index, dismiss)`
Generate the data for rendering the social media in view.html.
This function will insert the generated social media data to `data`.
---
## v2_social_media_services
`def v2_social_media_services()`
Until v3 website is still set through the main `website` property
of the object, we need to skip it here so it is not rendered to
the UX as a pickable choice in the social media dropdown
---