Google app engine 应用程序引擎python提交+;显示

Google app engine 应用程序引擎python提交+;显示,google-app-engine,Google App Engine,我是使用python的google应用程序引擎的新手 这是我在jquery中编写的html文件 $("a.display").colorbox({iframe:true, innerWidth:800, innerHeight:550}); 在这个添加按钮上,我希望我的当前数据保存在数据库中,然后弹出我添加的保存记录。 我的问题是如何保存数据,然后显示在灯箱弹出窗口中 class DisplayAddHandler(webapp.RequestHandler): def get(s

我是使用python的google应用程序引擎的新手 这是我在jquery中编写的html文件

 $("a.display").colorbox({iframe:true, innerWidth:800, innerHeight:550});

在这个添加按钮上,我希望我的当前数据保存在数据库中,然后弹出我添加的保存记录。 我的问题是如何保存数据,然后显示在灯箱弹出窗口中

class DisplayAddHandler(webapp.RequestHandler):
    def get(self):
        self.response.out.write("worksss")

        data_key_display = self.request.get('patients_id')
        key = self.request.get('key')
        patient_print_display = PatientInfo.get_by_id(int(data_key_display),parent=None)
        results_print_display = db.GqlQuery("SELECT * FROM PatientMeds WHERE patientinfo_ID=" + data_key_display)
        results_patientalerts_print_display = db.GqlQuery("SELECT * FROM PatientAlerts WHERE patientinfo_ID=" + data_key_display)

    template_values = {
    'patient_display': patient_print_display,
    'meds_display': results_print_display,
    'alert_display': results_patientalerts_print_display,

    }

    path = os.path.join(os.path.dirname(__file__), 'display.html')        
    self.response.out.write(template.render(path, template_values))
现在我想在保存记录时。。它将成功保存,保存后,它将显示我添加的记录(我的意思是在提交按钮上,它将保存记录+显示) i’’我很困惑,我该如何保存和显示在同一个按钮上。。 请帮帮我。。
thanx提前

您应该使用jquery或提交数据,然后在success函数中添加代码以显示颜色框