granicus_archiver.web.types¶
- granicus_archiver.web.types.ConfigKey = <AppKey(granicus_archiver.web.types.Config, type=granicus_archiver.config.Config)>¶
App key for the
granicus_archiver.config.Configinstance
- granicus_archiver.web.types.DataFiles¶
alias of
dict[Literal[‘clips’, ‘legistar’, ‘legistar_rguid’],Path]
- granicus_archiver.web.types.DataFileLockKey = <AppKey(granicus_archiver.web.types.DataFileLock, type=asyncio.locks.Lock)>¶
App key for the
asyncio.Lockused to protect data files
- granicus_archiver.web.types.ClipsKey = <AppKey(granicus_archiver.web.types.Clips, type=granicus_archiver.clips.model.ClipCollection)>¶
App key for the
granicus_archiver.model.ClipCollectioninstance
- granicus_archiver.web.types.LegistarDataKey = <AppKey(granicus_archiver.web.types.LegistarData, type=granicus_archiver.legistar.model.LegistarData)>¶
App key for the
granicus_archiver.legistar.model.LegistarDatainstance
- granicus_archiver.web.types.RGuidLegistarDataKey = <AppKey(granicus_archiver.web.types.RGuidLegistarDataKey, type=granicus_archiver.legistar.guid_model.RGuidLegistarData)>¶
App key for the
granicus_archiver.legistar.guid_model.RGuidLegistarDatainstance
- granicus_archiver.web.types.TimezoneKey = <AppKey(granicus_archiver.web.types.Timezone, type=zoneinfo.ZoneInfo)>¶
App key for the server’s default timezone
(Set from
granicus_archiver.config.Config.local_timezone_name)
- class granicus_archiver.web.types.StaticRoots[source]¶
Bases:
TypedDictFilesystem paths for static files if serving locally
- assets: Path¶
Files specific to the web app
- granicus: Path¶
Granicus clips
- legistar: Path¶
Legistar data
- legistar_rguid: Path¶
Legistar data with RGUIDs
- class granicus_archiver.web.types.StaticUrlRoots[source]¶
Bases:
TypedDictRoot URLs for static files
Bases:
NamedTupleA navigation link
Name of the link
Title of the link
URL or view name for the link
Keyword arguments for the view, if any
Get the URL for the link
- Parameters:
app (Application)
- Return type:
App key for
NavLinkinstances