chapeau/django_kepi/__init__.py

42 wiersze
1.3 KiB
Python

__title__ = 'django_kepi'
__version__ = '0.0.4'
VERSION = __version__
__author__ = 'Marnanel Thurman'
__license__ = 'GPL-2'
__copyright__ = 'Copyright (c) 2018 Marnanel Thurman'
# XXX this is mastodon-specific; it will be generalised later
ATSIGN_CONTEXT = [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"schema": "http://schema.org#",
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
"movedTo": "as:movedTo",
"conversation": "ostatus:conversation",
"ostatus": "http://ostatus.org#",
"atomUri": "ostatus:atomUri",
"featured": "toot:featured",
"value": "schema:value",
"PropertyValue": "schema:PropertyValue",
"sensitive": "as:sensitive",
"toot": "http://joinmastodon.org/ns#",
"Hashtag": "as:Hashtag",
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
"focalPoint": {
"@id": "toot:focalPoint",
"@container": "@list"
},
"Emoji": "toot:Emoji"
}
]
object_type_registry = {
'Object': None,
}
def register_type(a_typename, a_typeclass):
object_type_registry[a_typename] = a_typeclass