コード例 #1
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #2
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #3
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #4
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #5
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #6
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #7
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #8
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #9
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #10
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #11
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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
コード例 #12
0
ファイル: properties.py プロジェクト: Joeper214/MoonHauz
 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