The congress.db.db_library_policies Module

class congress.db.db_library_policies.LibraryPolicy(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, congress.db.model_base.HasId

abbreviation
description
id
kind
name
rules
to_dict(include_rules=True, json_rules=False)

From a given library policy, return a policy dict.

Args:
include_rules (bool, optional): include policy rules in return
dictionary. Defaults to False.
congress.db.db_library_policies.add_policy(policy_dict, session=None)
congress.db.db_library_policies.delete_policies(session=None)
congress.db.db_library_policies.delete_policy(id_, session=None)
congress.db.db_library_policies.get_policies(session=None)
congress.db.db_library_policies.get_policy(id_, session=None)
congress.db.db_library_policies.replace_policy(id_, policy_dict, session=None)