betty.extension.cotton_candy package¶
Submodules¶
Module contents¶
Provide Betty’s default theme.
- class betty.extension.cotton_candy.CottonCandy(*args, configuration=None, **kwargs)[source]¶
Bases:
Theme,CssProvider,ConfigurableExtension[CottonCandyConfiguration],GuiBuilder,Jinja2Provider,WebpackEntrypointProvider- classmethod assets_directory_path()[source]¶
Return the path on disk where the extension’s assets are located.
This may be anywhere in your Python package.
- Return type:¶
pathlib.Path
- classmethod comes_after()[source]¶
- Return type:¶
set[type[betty.app.extension.Extension]]
- classmethod depends_on()[source]¶
- Return type:¶
set[type[betty.app.extension.Extension]]
- property filters : dict[str, Callable[[...], Any]]¶
- property globals : dict[str, Any]¶
- property public_css_paths : list[str]¶
- class betty.extension.cotton_candy.CottonCandyConfiguration(*, featured_entities=None, primary_inactive_color='#ffc0cb', primary_active_color='#ff69b4', link_inactive_color='#149988', link_active_color='#2a615a')[source]¶
Bases:
Configuration- Parameters:¶
-
DEFAULT_LINK_ACTIVE_COLOR =
'#2a615a'¶
-
DEFAULT_LINK_INACTIVE_COLOR =
'#149988'¶
-
DEFAULT_PRIMARY_ACTIVE_COLOR =
'#ff69b4'¶
-
DEFAULT_PRIMARY_INACTIVE_COLOR =
'#ffc0cb'¶
- dump()[source]¶
Dump this instance to a portable format.
- Return type:¶
typing.Union[bool,int,float,str,None,typing.Sequence[typing.Union[bool,int,float,str,None,typing.Sequence[Dump],typing.Mapping[str, Dump]]],typing.Mapping[str,typing.Union[bool,int,float,str,None,typing.Sequence[Dump],typing.Mapping[str, Dump]]],type[betty.serde.dump.Void]]
- property featured_entities : EntityReferenceSequence[UserFacingEntity & Entity]¶
- property link_active_color : _ColorConfiguration¶
- property link_inactive_color : _ColorConfiguration¶
- classmethod load(dump, configuration=None)[source]¶
Load dumped configuration into a new configuration instance.
- property primary_active_color : _ColorConfiguration¶
- property primary_inactive_color : _ColorConfiguration¶
- betty.extension.cotton_candy.person_descendant_families(person)[source]¶
Gather a person’s families they are a parent in.
- Parameters:¶
- person¶
- Return type:¶
typing.Iterable[tuple[collections.abc.Sequence[betty.model.ancestry.Person],collections.abc.Sequence[betty.model.ancestry.Person]]]
- betty.extension.cotton_candy.person_timeline_events(person, lifetime_threshold)[source]¶
Gather all events for a person’s timeline.
- Parameters:¶
- Return type:¶
typing.Iterable[betty.model.ancestry.Event]