Logo Search packages:      
Sourcecode: webcheck version File versions

def crawler::Link::add_child (   self,
  child 
)

Add a link object to the child relation of this link.
The reverse relation is also made.

Definition at line 450 of file crawler.py.

00450                               :
        """Add a link object to the child relation of this link.
        The reverse relation is also made."""
        # ignore children for external links
        if not self.isinternal:
            return
        # convert to link object
        child = self.__tolink(child)
        if child is None:
            return
        # add to children
        if child not in self.children:
            self.children.append(child)
            self._ischanged = True
        # add self to parents of child
        if self not in child.parents:
            child.parents.append(self)

    def add_embed(self, link):


Generated by  Doxygen 1.6.0   Back to index