예제 #1
0
파일: tasks.py 프로젝트: zackxue/mist.io
 def execute(self, email, backend_id):
     from mist.io import methods
     user = user_from_email(email)
     locations = methods.list_locations(user, backend_id)
     return {'backend_id': backend_id, 'locations': locations}
예제 #2
0
def list_locations(request):
    """List locations from each backend."""
    backend_id = request.matchdict['backend']
    user = user_from_request(request)
    return methods.list_locations(user, backend_id)
예제 #3
0
def list_locations(request):
    """List locations from each backend."""
    backend_id = request.matchdict['backend']
    user = user_from_request(request)
    return methods.list_locations(user, backend_id)
예제 #4
0
파일: tasks.py 프로젝트: gabeo8/mist.io
 def execute(self, email, backend_id):
     from mist.io import methods
     user = user_from_email(email)
     locations = methods.list_locations(user, backend_id)
     return {'backend_id': backend_id, 'locations': locations}
예제 #5
0
파일: views.py 프로젝트: carlcdavid/mist.io
def list_locations(request):
    """List locations from each cloud."""
    cloud_id = request.matchdict['cloud']
    user = user_from_request(request)
    return methods.list_locations(user, cloud_id)
예제 #6
0
def list_locations(request):
    """List locations from each cloud."""
    cloud_id = request.matchdict['cloud']
    user = user_from_request(request)
    return methods.list_locations(user, cloud_id)