Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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