Пример #1
0
 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
 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
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)