def button_action_cancel(self, name, params): if name: params.button.btype = "object" params.id = False res = self.button_action(params) if res: return res import actions return actions.close_popup(reload=False)
def end(self, **kw): if 'wizard_parent_params' in cherrypy.session: frm = cherrypy.session['wizard_parent_form'] params = cherrypy.session['wizard_parent_params'] try: return pooler.get_pool().get_controller(frm).create(params) except: pass import actions return actions.close_popup()