Пример #1
0
def resources(request):
    resources = get_visible_resources()
    result = register.resources_to_dict(resources)
    return json_response(result)
Пример #2
0
def resources(request):
    resources = get_visible_resources()
    result = register.resources_to_dict(resources)
    return json_response(result)
Пример #3
0
 def get(cls):
     if cls._object is None:
         rs = register.get_resources()
         cls._object = register.resources_to_dict(rs)
     return cls._object
Пример #4
0
 def get(cls):
     if cls._object is None:
         rs = register.get_resources()
         cls._object = register.resources_to_dict(rs)
     return cls._object