--- a/conf.py Thu Apr 02 20:54:37 2009 +0300
+++ b/conf.py Thu Apr 02 21:11:01 2009 +0300
@@ -9,6 +9,22 @@
An object that can be written to a ConfFile, as multiple lines of text.
"""
+ def __init__ (self, comments=None) :
+ """
+ Initialize with the given list of comments. Comments that are None should be ignore.
+ """
+
+ # init the comments list
+ self.comments = comments or []
+
+ def add_comment (self, comment) :
+ """
+ Add a comment to be rendered in the output.
+ """
+
+ # add it
+ self.comments.append(comment)
+
def fmt_lines (self) :
"""
Yield a series of lines to be output in the file