def has_valid_uid(self):
        """
        Return True if object contains a valid id (aka all parts contain a valid value).

        :rtype: ``bool``
        """
        parts = self.get_uid_parts()
        return len(parts) == len(self.UID_FIELDS) + 1

        Return True if object contains a valid id (aka all parts contain a valid value).

        :rtype: ``bool``
        
st2common/st2common/models/db/stormbase.py