(self)
return text
Export configuration to text version
Export configuration to text version
Export configuration to text version
def text(self):
        """Export configuration to text version"""
        text = ""
        for k in self.cfg:
            if (isinstance(self.cfg[k], list)):
                for e in self.cfg[k]:
                    text += k + "=" + e + "\n"
            else:
                text += k + "=" + self.cfg[k] + "\n"
        return text
def text ( self ) : text = "" for k in self . cfg : if ( isinstance ( self . cfg [ k ] , list ) ) : for e in self . cfg [ k ] : text += k + "=" + e + "\n" else : text += k + "=" + self . cfg [ k ] + "\n" return text