Esempio n. 1
0
    def _export_(self):
        self.logger.info('Récupération des émoticones')

        params = {"part": "themes", "sub": "avatars", "mode": "smilies"}
        response = self.session.get_admin("/admin/index.forum", params=params)
        for page in pages(response.text):
            self.add_child(SmiliesPage(page))
Esempio n. 2
0
    def _export_(self):
        self.logger.info('Récupération des membres')

        self.add_child(AnonymousUser())

        response = self.session.get("/memberlist")
        for page in pages(response.text):
            self.add_child(OcrUsersPage(page))
Esempio n. 3
0
    def _export_(self):
        self.logger.info('Récupération des membres')

        self.add_child(AnonymousUser())

        response = self.session.get("/memberlist")
        for page in pages(response.text):
            self.add_child(OcrUsersPage(page))
Esempio n. 4
0
    def _export_(self):
        self.logger.info('Récupération du sujet %d -> %s', self.topic_id, self.title.ljust(15)[:15].strip())

        self.root.current_topics += 1
        self.ui.update()

        response = self.session.get("/t{}-a".format(self.topic_id))
        for page in pages(response.text):
            self.add_child(TopicPage(page))
Esempio n. 5
0
    def _export_(self):
        self.logger.info("Récupération du sujet %d", self.topic_id)

        self.root.current_topics += 1
        self.ui.update()

        response = self.session.get("/t{}-a".format(self.topic_id))
        for page in pages(response.text):
            self.add_child(TopicPage(page))
Esempio n. 6
0
    def _export_(self):
        self.logger.info('Récupération du forum %s', self.oldid)

        response = self.session.get("/{}-a".format(self.oldid))

        # Get subforums descriptions, number of topics, ...
        self.forums_node.get_subforums_infos(response.text)

        for page in pages(response.text):
            self.add_child(ForumPage(page))
Esempio n. 7
0
    def _export_(self):
        self.logger.info('Récupération des membres')

        self.add_child(AnonymousUser())

        # Get the list of users from the administration panel
        params = {"part": "users_groups", "sub": "users"}
        response = self.session.get_admin("/admin/index.forum", params=params)
        for page in pages(response.text):
            self.add_child(UsersPage(page))
Esempio n. 8
0
    def _export_(self):
        self.logger.info('Récupération du forum %s', self.oldid)

        response = self.session.get("/{}-a".format(self.oldid))

        # Get subforums descriptions, number of topics, ...
        self.forums_node.get_subforums_infos(response.text)

        for page in pages(response.text):
            self.add_child(ForumPage(page))
Esempio n. 9
0
    def _export_(self):
        self.logger.info('Récupération des émoticones')

        params = {
            "part" : "themes",
            "sub" : "avatars",
            "mode" : "smilies"
        }
        response = self.session.get_admin("/admin/index.forum", params=params)
        for page in pages(response.text):
            self.add_child(SmiliesPage(page))
Esempio n. 10
0
    def _export_(self):
        self.logger.info('Récupération du sujet %d', self.topic_id)

        self.root.current_topics += 1
        self.ui.update()

        response = self.session.get("/t{}-{}".format(self.topic_id,
                                                     self.topic_slug))
        for page in pages(response.text):
            self.logger.debug("sujet {} page {}".format(self.topic_id, page))
            self.add_child(TopicPage(page))
Esempio n. 11
0
    def _export_(self):
        self.logger.info('Récupération des membres')

        self.add_child(AnonymousUser())

        # Get the list of users from the administration panel
        params = {
            "part" : "users_groups",
            "sub" : "users"
        }
        response = self.session.get_admin("/admin/index.forum", params=params)
        for page in pages(response.text):
            self.add_child(UsersPage(page))
Esempio n. 12
0
    def _export_(self):
        self.logger.info('Récupération du groupe %d', self.oldid)

        if self.oldid == 1:
            # Administrators group
            self.newid = 5
            self.leader_name = self.config["admin_name"]
        else:
            self.newid = self.groups_count.value
            self.groups_count += 1

        response = self.session.get("/g{}-a".format(self.oldid))
        for page in pages(response.text):
            self.add_child(GroupPage(page))
Esempio n. 13
0
    def _export_(self):
        self.logger.info('Récupération du groupe %d', self.oldid)

        if self.oldid == 1:
            # Administrators group
            self.newid = 5
            self.leader_name = self.config["admin_name"]
        else:
            self.newid = self.groups_count.value
            self.groups_count += 1

        response = self.session.get("/g{}-a".format(self.oldid))
        for page in pages(response.text):
            self.add_child(GroupPage(page))