Logo Search packages:      
Sourcecode: webcheck version File versions

def crawler::Link::add_embed (   self,
  link 
)

Mark the given link object as used as an image on this page.

Definition at line 468 of file crawler.py.

00468                              :
        """Mark the given link object as used as an image on this page."""
        # ignore embeds for external links
        if not self.isinternal:
            return
        # convert to link object
        link = self.__tolink(link)
        if link is None:
            return
        # add to embedded
        if link not in self.embedded:
            self.embedded.append(link)
            self._ischanged = True
        # add self to parents of embed
        if self not in link.parents:
            link.parents.append(self)

    def add_anchor(self, anchor):


Generated by  Doxygen 1.6.0   Back to index