예제 #1
0
파일: _common.py 프로젝트: cstavr/synnefo
 def get(cls):
     if cls._object is None:
         cls._object = get_resources()
     return cls._object
예제 #2
0
 def get(cls):
     if cls._object is None:
         rs = register.get_resources()
         cls._object = register.resources_to_dict(rs)
     return cls._object
예제 #3
0
 def get(cls):
     if cls._object is None:
         cls._object = get_resources()
     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
예제 #5
0
def resources(request):
    result = get_resources()
    return json_response(result)