angelos.lib.policy.format¶
Print formatting strings.
-
class
angelos.lib.policy.format.
PrintPolicy
¶ Bases:
object
Format print strings.
-
POLICY
= {'A': '1A', 'B': '1B', 'C': '2C', 'D': '2D', 'E': '2E', 'F': '3F', 'G': '3G', 'H': '3H', 'J': '3J', 'K': '4K', 'L': '4L', 'M': '4M', 'N': '4N', 'P': '5P', 'Q': '5Q', 'R': '5R', 'S': '5S', 'T': '6T', 'U': '6U', 'V': '6V', 'X': '6X', 'Y': '7Y', 'Z': '7Z'}¶
-
static
entity_title
(entity: Union[angelos.document.entities.Person, angelos.document.entities.Ministry, angelos.document.entities.Church]) → unicode¶ Format an entitys title.
- Parameters
entity (Entity) – An entity document.
- Returns
Correctly formatted title string.
- Return type
str
-
static
policy
(p: tuple, compact: bool = True) → unicode¶ Print a policy
-
static
title
(portfolio: angelos.lib.policy.portfolio.Portfolio) → unicode¶ Format title and name based on entity type.
- Parameters
portfolio (Portfolio) – Portfolio belonging to entity.
- Returns
Formatted title string.
- Return type
str
-