def customValidation(self):
    (information, warnings, critical) = ([], [], [])
    themes = ['light', 'dark']
    if self.styling:
        for theme in self.styling:
            if (theme not in themes):
                critical.append(("Styling keyword '%s' is unknown. Known are %s." % (theme, themes)))
            for colorKey in self._stylingColorAttributes:
                if (colorKey in self.styling[theme]):
                    c = HexColorDataType()
                    c.value = self.styling[theme][colorKey]
                    valid = c.valid()
                    if (valid is not True):
                        critical.append((".styling color attribute '%s': %s" % (colorKey, valid)))
            if ('logoURL' in self.styling[theme]):
                logo = WebURLDataType()
                logo.value = self.styling[theme]['logoURL']
                valid = logo.valid()
                if (valid is not True):
                    critical.append((".styling 'logoURL' attribute: %s" % valid))
    return (information, warnings, critical)
def customValidation(self):
    (information, warnings, critical) = ([], [], [])
    themes = ['light', 'dark']
    if self.styling:
        for theme in self.styling:
            if (theme not in themes):
                critical.append(("Styling keyword '%s' is unknown. Known are %s." % (theme, themes)))
            for colorKey in self._stylingColorAttributes:
                if (colorKey in self.styling[theme]):
                    c = HexColorDataType()
                    c.value = self.styling[theme][colorKey]
                    valid = c.valid()
                    if (valid is not True):
                        critical.append((".styling color attribute '%s': %s" % (colorKey, valid)))
            if ('logoURL' in self.styling[theme]):
                logo = WebURLDataType()
                logo.value = self.styling[theme]['logoURL']
                valid = logo.valid()
                if (valid is not True):
                    critical.append((".styling 'logoURL' attribute: %s" % valid))
    return (information, warnings, critical)