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

def uicilibris::wikiParser::wikiParser::include_one_address (   self,
  completeUrl 
)
gets contents from a simple wiki page
@param completeUrl an url

Definition at line 387 of file wikiParser.py.

                                              :
        """
        gets contents from a simple wiki page
        @param completeUrl an url
        """
        text=""
        pattern=re.compile("http://(.+)/index.php/(.+)")
        m=pattern.match(completeUrl)
        if m:
            self.baseAddress=m.group(1).decode("utf-8")
            self.host=re.findall("([^/]+).*", self.baseAddress)[0]
            basePage=m.group(2).decode("utf-8")
            text=self.getWikiContents(basePage)
            if text==None:
                text="Error: the page %s does not exist" %completeUrl
            if self.report and completeUrl:
                print >> sys.stderr, "'%s'" %completeUrl
            elif callable(self.report) and completeUrl:
                self.report("'%s'" %completeUrl)
            text=self.applyPLugins(text) 
            text=self.wikiTemplates(text)
            text=text.encode("utf-8")
        self.loadUrlLines(text)
            

Generated by  Doxygen 1.6.0   Back to index