def _create_record(self, rtype, name, content):
        """Creates a new unique record"""
        found = self._list_records(rtype=rtype, name=name, content=content)
        if found:
            return True

        record = self._create_request_record(None, rtype, name, content,
                                             self._get_lexicon_option('ttl'),
                                             self._get_lexicon_option('priority'))

        self._request_add_dns_record(record)
        return True
def _create_record ( self , rtype , name , content ) : found = self . _list_records ( rtype = rtype , name = name , content = content ) if found : return True record = self . _create_request_record ( None , rtype , name , content , self . _get_lexicon_option ( 'ttl' ) , self . _get_lexicon_option ( 'priority' ) ) self . _request_add_dns_record ( record ) return True
Creates a new unique record