def index(self): self.msg = [] try: servicegroup_jcfg = xte_service_group.get() tmp = controller.lookup.get_template("service_group.mako") if servicegroup_jcfg[0]: # load successfully return tmp.render(servicegroup_args = servicegroup_jcfg[1], msg_list = self.msg) else: self.addMsg(str(servicegroup_jcfg[1])) return tmp.render(servicegroup_args = {}, msg_list = self.msg) except: exceptions.html_error_template().render()