def getInitList(self): # self.__init__() self.TREE_LEVEL = 0 TREE_LEVEL_IDs = [0, 0, 0, 0, 0] if self.StartWebPage == "": self.StartWebPage = GetForumContent(GetWebPage(self.mainurl, self.dailyURL, self.username, self.password)) if self.StartWebPage != -1: if len(self.Lista_Forums) == 0: self.Lista_Forums = GetForumsList(GetWebPage(self.mainurl, "/index.php", self.username, self.password)) if len(self.TREE_TAB) == 0: for forum in self.Lista_Forums: if str(forum["ID"]) not in self.BlockedIDs.split(","): self.TREE_TAB.append( { "Name": forum["NAME"], "Desc": self.forumurl + str(forum["ID"]) + ".0", "IMG": "", "catURL": forum["ID"], "CatLIST": [], "ForumLevel": forum["LEVEL"], "ParentID": forum["ParenID"], } ) else: self.TREE_TAB.append( { "Name": str(_("Error logging to xunil forum!!!")), "Desc": str(_("Check forum settings. ;)")), "IMG": "", "catURL": "", "CatLIST": [], "ForumLevel": 0, "ParentID": 0, } ) # print self.TREE_TAB return RetHost(RetHost.OK, value=self.ListTREETOHostList())
def getInitList(self): #self.__init__() self.TREE_LEVEL = 0 TREE_LEVEL_IDs = [0,0,0,0,0] if self.StartWebPage == '': self.StartWebPage = GetDVHKforumContent(GetWebPage(self.mainurl,self.dailyURL,self.username,self.password)) if self.StartWebPage != -1: if len(self.Lista_Forums) == 0: self.Lista_Forums = GetForumsList(self.StartWebPage) if len(self.TREE_TAB) == 0: for forum in self.Lista_Forums: if str(forum['ID']) not in self.BlockedIDs.split(','): self.TREE_TAB.append({'Name': forum['NAME'], 'Desc': self.forumurl + str(forum['ID']), 'IMG': '', 'catURL':forum['ID'], 'CatLIST': [], 'ForumLevel': forum['LEVEL'], 'ParentID': forum['ParenID'] }) else: self.TREE_TAB.append({'Name': str(_('Error logging to DVHK forum!!!')), 'Desc': str(_('Check forum settings. ;)')), 'IMG': '', 'catURL':'', 'CatLIST': [], 'ForumLevel': 0, 'ParentID': 0 }) #print self.TREE_TAB return RetHost(RetHost.OK, value = self.ListTREETOHostList())
def GetConfigList(): optionList = [] optionList.append(getConfigListEntry(_("DVHK login:"******"DVHK password:"******"Blocked subforums IDs:"), config.plugins.BoardReader.dvhk_BlockedIDs)) return optionList
def gettytul(): return _("forum DVHK")
def gettytul(): return _("forum xunil.pl")