Exemplo n.º 1
0
 def GetOtherThreadPage(self):
     try:
         self.WebPage = vb_GetFullThread(GetWebPage(self.mainurl,self.ThreadURL + self.ThreadPage + str(self.CurrentThreadPage),self.username,self.password))
     except:
         pass
     self.newtitle = self.WebPage[:self.WebPage.find('\n')]
     self.WebPage = self.WebPage[self.WebPage.find('\n')+1:]
     self["text"].setText(self.WebPage)
     self.setTitle(self.newtitle)
     return
Exemplo n.º 2
0
 def getFullThread(self, Index = 0):
     if Index > len(self.CURRENT_TAB):
         Index = Index - len(self.CURRENT_TAB)
     if len(self.CURRENT_TAB) <= Index or Index < 0:
         printDBG("[BoardsClient] ERROR: .hostdvhk.BoardsClientHost.getFullThread there is no item with index: %d, self.CURRENT_TAB.len: %d" % (Index, len(self.CURRENT_TAB)))
         return ""
     else:
         printDBG('[BoardsClient] zwroc Thread "' + self.CURRENT_TAB[Index]['Name'] + '" url=' + self.CURRENT_TAB[Index]['catURL'])
         self.WebPage = GetWebPage(self.mainurl,self.CURRENT_TAB[Index]['catURL'] + self.threadLastPage,self.username,self.password)
         return vb_GetFullThread(self.WebPage) , self.mainurl, self.CURRENT_TAB[Index]['catURL']