Esempio n. 1
0
 def _load_templates(self, template_file):
     try:
         with open(template_file) as f:
             self.templates = parse_templates(f)
     except IOError:
         LOG.critical(_LC('Unable to open template file %s'), template_file)
         raise
Esempio n. 2
0
 def _load_templates(self, template_file):
     try:
         with open(template_file) as f:
             self.templates = parse_templates(f)
     except IOError:
         LOG.critical(_LC('Unable to open template file %s'), template_file)
         raise
Esempio n. 3
0
 def _load_templates(self, template_file):
     try:
         self.templates = parse_templates(open(template_file))
     except IOError:
         LOG.critical(_LC("Unable to open template file %s"), template_file)
         raise