5 """Simple helper for loading a template file.
8 def __init__(self
, fileName
):
9 """Creates a new TemplateReader for the given template file fileName.
11 self
.m_log
= logging
.getLogger("TemplateReader");
12 self
.m_fileName
= fileName
;
16 """Loads the template file specified in the constructor and returns a
17 list of strings, each a line of the template file contents.
19 self
.m_log
.debug("read: Opening file \"%s\"." % self
.m_fileName
);
20 fileObj
= open(self
.m_fileName
, "rb");
22 self
.m_log
.debug("read: reading template.");
23 self
.m_lines
= fileObj
.readlines();
25 self
.m_log
.debug("read: closing file.");
28 return self
.m_lines
[:];