Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/y/dycapo-HEAD/rest/wrappers/location.py   dycapo(Download)
    def read(self, request, username=None, id=None):
        if id:
            try:
                location = server.models.Location.objects.get(id=id)
                return location
    def read(self, request, username=None, id=None):
        user = rest.utils.get_rest_user(request)
        try:
            if id:
                location = server.models.Location.objects.get(id=id)