code: def getName(self, value, defaultName = None):
          '''
          Get the enumerate name of a specified value.
          :param value: the enumerate value
          :param defaultName: returns if the enumerate value is not defined
          :returns: the corresponding enumerate value or *defaultName* if not found
          '''
          for k,v in self._values.items():
              if v == value:
                  return k
          return defaultNamf getName(self, value, defaultName = None):
          '''
          Get the enumerate name of a specified value.
          :param value: the enumerate value
          :param defaultName: returns if the enumerate value is not defined
          :returns: the corresponding enumerate value or *defaultName* if not found
          '''
          for k,v in self._values.items():
              if v == value:
                  return k
          return defaultName
docs: Get the enumerate name of a specified value.
          :param value: the enumerate value
          :param defaultName: returns if the enumerate value is not defined
          :returns: the corresponding enumerate value or *defaultName* if not found