pypnusershub.db.tools

Module Contents

Functions

load_fixtures(con_uri)

encode_token(payload)

decode_token(payload)

user_to_token(user)

user_from_token(token[, secret_key])

Given a, authentification token, return the matching AppUser instance

Attributes

log

pypnusershub.db.tools.log[source]
exception pypnusershub.db.tools.AccessRightsError[source]

Bases: Exception

Common base class for all non-exit exceptions.

exception pypnusershub.db.tools.InsufficientRightsError[source]

Bases: AccessRightsError

Common base class for all non-exit exceptions.

exception pypnusershub.db.tools.AccessRightsExpiredError[source]

Bases: AccessRightsError

Common base class for all non-exit exceptions.

exception pypnusershub.db.tools.UnreadableAccessRightsError[source]

Bases: AccessRightsError

Common base class for all non-exit exceptions.

exception pypnusershub.db.tools.NoPasswordError[source]

Bases: Exception

Common base class for all non-exit exceptions.

exception pypnusershub.db.tools.DifferentPasswordError[source]

Bases: Exception

Common base class for all non-exit exceptions.

pypnusershub.db.tools.load_fixtures(con_uri)[source]
pypnusershub.db.tools.encode_token(payload)[source]
pypnusershub.db.tools.decode_token(payload)[source]
pypnusershub.db.tools.user_to_token(user)[source]
pypnusershub.db.tools.user_from_token(token, secret_key=None)[source]

Given a, authentification token, return the matching AppUser instance