def api_update_condo_unit(self, p_key): self.meta.Model = CondoUnit condo_unit = self.util.decode_key(p_key).get() condo_unit.update(json_loads(self.request.body, self.meta.keys)) self.context['data'] = condo_unit
def api_update_land(self, p_key): self.meta.Model = Land land = self.util.decode_key(p_key).get() land.update(json_loads(self.request.body, self.meta.keys)) self.meta.Message = messages.model_message(Land) self.context['data'] = land
def api_update_house_and_lot(self, p_key): self.meta.Model = HouseAndLot h_and_l = self.util.decode_key(p_key).get() h_and_l.update(json_loads(self.request.body, self.meta.keys)) self.context['data'] = h_and_l
def api_create_house_and_lot(self): self.meta.Model = HouseAndLot h_and_l = HouseAndLot.create(json_loads(self.request.body, self.meta.keys)) self.context['data'] = h_and_l
def api_create_condo_unit(self): self.meta.Model = CondoUnit condo_unit = CondoUnit.create(json_loads(self.request.body, self.meta.keys)) self.context['data'] = condo_unit
def api_create_land(self): self.meta.Model = Land land = Land.create(json_loads(self.request.body, self.meta.keys)) self.meta.Message = messages.model_message(Land) self.context['data'] = land
def api_create_condo_unit(self): self.meta.Model = CondoUnit condo_unit = CondoUnit.create( json_loads(self.request.body, self.meta.keys)) self.context['data'] = condo_unit
def api_create_house_and_lot(self): self.meta.Model = HouseAndLot h_and_l = HouseAndLot.create( json_loads(self.request.body, self.meta.keys)) self.context['data'] = h_and_l