1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/docs/dev/modules/util.py.md
Matt Griswold c21130eed9 Docs 202109 (#1067)
* module docstrings

* db schema graph

* dev docs first pass

* dev docs pass 2

* add generated notification to top of generated docs files

* linting

* regen docs

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: Sunshine Buchholz <sunshine@20c.com>
2021-10-15 03:25:38 -05:00

890 B

Generated from util.py on 2021-10-15 07:56:57.376975

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.


Classes


APIPermissionsApplicator

APIPermissionsApplicator(grainy.core.NamespaceKeyApplicator)

Applicator that looks for permission namespaces from a specified field in the dict it is scanning

Instanced Attributes

These attributes / properties will be available on instances of the class

  • is_generating_api_cache (@property): None

Methods

_init_

def __init__(self, user)

Initialize self. See help(type(self)) for accurate signature.