def serFromXmlBoolean(xmlNode, tag, default=None): result = serFromXmlUnicode(xmlNode, tag, None) if result is None: return default return strToBool(result)
def getboolean(self, section, option, default=None): result = self.get(section, option) if result is None: return default return strToBool(result, False)