Пример #1
0
def serFromXmlBoolean(xmlNode, tag, default=None):
    result = serFromXmlUnicode(xmlNode, tag, None)
    if result is None:
        return default

    return strToBool(result)
Пример #2
0
    def getboolean(self, section, option, default=None):
        result = self.get(section, option)
        if result is None:
            return default

        return strToBool(result, False)
Пример #3
0
    def getboolean(self, section, option, default=None):
        result = self.get(section, option)
        if result is None:
            return default

        return strToBool(result, False)
Пример #4
0
def serFromXmlBoolean(xmlNode, tag, default=None):
    result = serFromXmlUnicode(xmlNode, tag, None)
    if result is None:
        return default

    return strToBool(result)