common package

Submodules

common.rules module

Evaluates access rules.

Depends on the in_expr table being alive and well – see sql/01-materialize-rules.sql.

common.rules.ask(db, accesspoint, when, identity)[source]

Evaluate the rules and return True iff access is allowed.

Parameters: db: something with a records.Database-like interface accesspoint: ID of the accesspoint, as specified in the DB time: datetime.datetime identity: ID of the identity, as specified in the DB

You probably want to use this with common.utils.db.transaction.

common.tag_names module

common.tag_names.name(tag)[source]
common.tag_names.value(tag)[source]

common.tags module

Module contents