Logo Search packages:      
Sourcecode: webcheck version File versions  Download package

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

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

Definition at line 420 of file crawler.py.

00420                              :
        """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.add(link)
            self._ischanged = True
        # add self to parents of embed
        if self not in link.parents:
            link.parents.add(self)

    def add_anchor(self, anchor):


Generated by  Doxygen 1.6.0   Back to index