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

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

src/d/y/dycapo-HEAD/rest/wrappers/trip.py   dycapo(Download)
 
 
        source = server.models.Location()
        dict_source = rest.utils.get_location_from_array(data['locations'],"orig")
        dict_source = rest.utils.clean_ids(dict_source)
        source = rest.utils.populate_object_from_dictionary(source, dict_source)
 
        destination = server.models.Location()

src/d/y/dycapo-HEAD/rest/wrappers/search.py   dycapo(Download)
    def create(self, request):
        user = rest.utils.get_rest_user(request)
        data = request.data
 
        origin = server.models.Location()
        origin.save()
 
        destination = server.models.Location()
        dict_dest = rest.utils.clean_ids(data['destination'])
        destination = rest.utils.populate_object_from_dictionary(destination, dict_dest)

src/d/y/dycapo-HEAD/rest/wrappers/location.py   dycapo(Download)
    def create(self, request, username):
        user = rest.utils.get_rest_user(request)
        data = request.data
        location = server.models.Location()
        dict_location = rest.utils.clean_ids(data)