Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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
Example #5
0
 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
Example #6
0
 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
Example #7
0
 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
Example #8
0
 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
Example #9
0
 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
Example #10
0
 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
Example #11
0
 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
Example #12
0
 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