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