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

def uicilibris::wikiParser::wikiParser::include_addresses (   self,
  wikiAddresses,
  cbInfo = None 
)
populates self.urlLines with data coming from addresses
self.urlLines will be a file-like object.
@param wikiAddresses a list of wikiaddresses to visit.
@param cbInfo a callback used to display an information about each address included. It should accept one string as input

Definition at line 426 of file wikiParser.py.

                                                           :
        """
        populates self.urlLines with data coming from addresses
        self.urlLines will be a file-like object.
        @param wikiAddresses a list of wikiaddresses to visit.
        @param cbInfo a callback used to display an information about each address included. It should accept one string as input
        """
        text=""
        for a in wikiAddresses:
            if cbInfo: cbInfo(a)
            contents=self.getWikiContents(a)
            contents=self.applyPLugins(contents) 
            processedContents=self.wikiTemplates(contents)
            text+="<!-- uicilibris: begin '%s' -->\n" %a
            text+=processedContents+"\n"
            text+="<!-- uicilibris: end '%s' -->\n" %a
        # enforce the same encoding as ordinary text files
        text=text.encode("utf-8")
        # and make it like a text file
        self.urlLines=StringIO.StringIO(text)
            


Generated by  Doxygen 1.6.0   Back to index