def is_int(string): print "Please import deepin_utils.core.is_int, this function will departed in next release version." return core.is_int(string)
def is_color_value(self, string): return len(string) == 0 or (is_int(string) and 0 <= int(string) <= 255)