Logo Search packages:      
Sourcecode: webcheck version File versions

def crawler::Link::add_reqanchor (   self,
  parent,
  anchor 
)

Indicate that the specified link contains a reference to the
specified anchor. This can be checked later.

Definition at line 498 of file crawler.py.

00498                                            :
        """Indicate that the specified link contains a reference to the
        specified anchor. This can be checked later."""
        # lowercase anchor
        anchor = anchor.lower()
        # convert the url to a link object if we were called with a url
        if type(parent) is str:
            parent = self.site.get_link(self.__checkurl(parent))
        # add anchor
        if anchor in self.reqanchors:
            if parent not in self.reqanchors[anchor]:
                self.reqanchors[anchor].append(parent)
                self._ischanged = True
        else:
            self.reqanchors[anchor] = [parent]
            self._ischanged = True

    def redirect(self, url):


Generated by  Doxygen 1.6.0   Back to index