Пример #1
0
def get_gateway_object(name):
    pg_class = PG_KEY_CLASS_MAP.get(name)
    return pg_class()
Пример #2
0
def get_gateway_class_from_slug(slug):
    return PG_KEY_CLASS_MAP.get(slug, None) if slug else None