Example #1
0
    def post(self):
        res = self.get_user(self.request.cookies.get('hash', ''))
        if res == False:
            self.redirect("./")
        else:
            user = res

        if self.request.get("mode") == "err_mainte":
            new_cd = common_models.err_code()
            new_cd.category = self.request.get("err_cat")
            new_cd.disp_text = self.request.get("err_txt")
            recd = new_cd.put()
            msg = "エラーコード:"

        if self.request.get("type") == "terra":
            new_terra = internal_models.Terrain()
            new_terra.terrain_name = self.request.get("terrain_name")
            new_terra.Fland = False

            if self.request.get("land_flag") == "Y":
                new_terra.Fland = True

            recd = new_terra.put()
            msg = "地形コード:"

        if self.request.get("type") == "world":
            if self.request.get("mode") == "regen":
                tworld = common_models.World().get_by_id(int(self.request.get("wid")))


        templates = {"sys_message":msg,"res_cd":recd}
        self.display('システム管理画面','administration_screen.html',templates,0)
        return
Example #2
0
 def disp_err(self,errcd):
     #エラーメッセージ出力
     err = common_models.err_code().get_by_id(errcd)
     return err.disp_text