コード例 #1
0
 def __init__(self, post_id, text, title, post_time, poster):
     Node.__init__(self)
     self.post_id = post_id
     self.text = text
     self.title = title
     self.time = post_time
     self.poster = poster
コード例 #2
0
ファイル: posts.py プロジェクト: Roromis/Lalf-Forumactif
 def __init__(self, post_id, text, title, post_time, poster):
     Node.__init__(self)
     self.post_id = post_id
     self.text = text
     self.title = title
     self.time = post_time
     self.poster = poster
コード例 #3
0
ファイル: topics.py プロジェクト: ChrysMa/Lalf-Forumactif
 def __init__(self, topic_id, topic_type, title, locked, views):
     Node.__init__(self)
     self.topic_id = topic_id
     self.topic_type = topic_type
     self.title = title
     self.locked = locked
     self.views = views
コード例 #4
0
ファイル: bb.py プロジェクト: ChrysMa/Lalf-Forumactif
    def __init__(self, config, ui=None):
        Node.__init__(self)

        self.config = config
        self.session = Session(self.config)
        self.ui = ui

        # Statistics
        self.total_posts = 0
        self.total_topics = 0
        self.total_users = 0

        self.current_posts = 0
        self.current_topics = 0
        self.current_users = 0

        self.startdate = 0
        self.record_online_date = 0
        self.record_online_users = 0

        self.site_name = ""
        self.site_desc = ""

        self.dump_time = 0

        self.smilies = {}
        self.users = {}
        self.forums = {}
        self.announcements = []

        self.linkrewriter = LinkRewriter(self)
コード例 #5
0
ファイル: bb.py プロジェクト: Roromis/Lalf-Forumactif
    def __init__(self, config, ui=None):
        Node.__init__(self)

        self.config = config
        self.session = Session(self.config)
        self.ui = ui

        # Statistics
        self.total_posts = 0
        self.total_topics = 0
        self.total_users = 0

        self.current_posts = 0
        self.current_topics = 0
        self.current_users = 0

        self.startdate = 0
        self.record_online_date = 0
        self.record_online_users = 0

        self.site_name = ""
        self.site_desc = ""

        self.dump_time = 0

        self.smilies = {}
        self.users = {}
        self.forums = {}
        self.announcements = []

        self.linkrewriter = LinkRewriter(self)
コード例 #6
0
ファイル: topics.py プロジェクト: Roromis/Lalf-Forumactif
 def __init__(self, topic_id, topic_type, title, locked, views):
     Node.__init__(self)
     self.topic_id = topic_id
     self.topic_type = topic_type
     self.title = title
     self.locked = locked
     self.views = views
コード例 #7
0
    def __init__(self, oldid, name, description, leader_name, colour, group_type):
        Node.__init__(self)
        self.oldid = oldid
        self.name = name
        self.description = description
        self.leader_name = leader_name
        self.colour = colour
        self.type = group_type

        self.newid = None
コード例 #8
0
ファイル: groups.py プロジェクト: Roromis/Lalf-Forumactif
    def __init__(self, oldid, name, description, leader_name, colour, group_type):
        Node.__init__(self)
        self.oldid = oldid
        self.name = name
        self.description = description
        self.leader_name = leader_name
        self.colour = colour
        self.type = group_type

        self.newid = None
コード例 #9
0
    def __init__(self, smiley_id, code, url, emotion):
        Node.__init__(self)

        self.smiley_id = smiley_id
        self.code = code
        self.url = url
        self.emotion = emotion

        self.smiley_url = None
        self.width = None
        self.height = None
        self.order = None
コード例 #10
0
    def __init__(self, oldid, name, mail, posts, date, lastvisit, colour=""):
        Node.__init__(self)
        self.oldid = oldid
        self.name = name
        self.mail = mail
        self.posts = posts
        self.date = date
        self.lastvisit = lastvisit
        self.colour = colour

        self.groups = []
        self.newid = None
コード例 #11
0
ファイル: smilies.py プロジェクト: Roromis/Lalf-Forumactif
    def __init__(self, smiley_id, code, url, emotion):
        Node.__init__(self)

        self.smiley_id = smiley_id
        self.code = code
        self.url = url
        self.emotion = emotion

        self.smiley_url = None
        self.width = None
        self.height = None
        self.order = None
コード例 #12
0
ファイル: users.py プロジェクト: Roromis/Lalf-Forumactif
    def __init__(self, oldid, name, mail, posts, date, lastvisit, colour=""):
        Node.__init__(self)
        self.oldid = oldid
        self.name = name
        self.mail = mail
        self.posts = posts
        self.date = date
        self.lastvisit = lastvisit
        self.colour = colour

        self.groups = []
        self.newid = None
コード例 #13
0
    def __init__(self, oldid, newid, left_id, parent, title):
        Node.__init__(self)
        self.oldid = oldid
        self.newid = newid
        self.left_id = left_id
        self.right_id = 0
        self.parent = parent
        self.title = title.replace('"', '"')

        if self.oldid[0] == "f":
            self.forum_type = 1
        else:
            self.forum_type = 0

        self.description = ""
        self.icon = ""
        self.status = 0
        self.num_topics = None
        self.num_posts = None
コード例 #14
0
ファイル: forums.py プロジェクト: Roromis/Lalf-Forumactif
    def __init__(self, oldid, newid, left_id, parent, title):
        Node.__init__(self)
        self.oldid = oldid
        self.newid = newid
        self.left_id = left_id
        self.right_id = 0
        self.parent = parent
        self.title = title.replace('"', '"')

        if self.oldid[0] == "f":
            self.forum_type = 1
        else:
            self.forum_type = 0

        self.description = ""
        self.icon = ""
        self.status = 0
        self.num_topics = None
        self.num_posts = None
コード例 #15
0
 def __init__(self, page):
     Node.__init__(self)
     self.page = page
コード例 #16
0
ファイル: smilies.py プロジェクト: Roromis/Lalf-Forumactif
 def __init__(self):
     Node.__init__(self)
     self.count = Counter(len(DEFAULT_SMILIES))
コード例 #17
0
ファイル: smilies.py プロジェクト: Roromis/Lalf-Forumactif
 def __init__(self, page):
     Node.__init__(self)
     self.page = page
コード例 #18
0
ファイル: users.py プロジェクト: Roromis/Lalf-Forumactif
 def __init__(self):
     Node.__init__(self)
     self.newid = 1
     self.name = ""
     self.colour = ""
コード例 #19
0
ファイル: users.py プロジェクト: Roromis/Lalf-Forumactif
 def __init__(self):
     Node.__init__(self)
     # User ids start at one, the first one is the anonymous user,
     # and the second one is the administrator
     self.count = Counter(len(BOTS) + 3)
コード例 #20
0
 def __init__(self):
     Node.__init__(self)
     # User ids start at one, the first one is the anonymous user,
     # and the second one is the administrator
     self.count = Counter(len(BOTS) + 3)
コード例 #21
0
ファイル: bb.py プロジェクト: Roromis/Lalf-Forumactif
 def __setstate__(self, state):
     Node.__setstate__(self, state)
     self.linkrewriter = LinkRewriter(self)
コード例 #22
0
 def __init__(self):
     Node.__init__(self)
     self.newid = 1
     self.name = ""
     self.colour = ""
コード例 #23
0
ファイル: bb.py プロジェクト: ChrysMa/Lalf-Forumactif
 def __setstate__(self, state):
     Node.__setstate__(self, state)
     self.linkrewriter = LinkRewriter(self)
コード例 #24
0
 def __init__(self):
     Node.__init__(self)
     self.count = Counter(len(DEFAULT_SMILIES))
コード例 #25
0
 def __init__(self):
     Node.__init__(self)
     # There are 7 groups already defined in phpbb, start at 8
     self.count = Counter(8)
コード例 #26
0
ファイル: groups.py プロジェクト: Roromis/Lalf-Forumactif
 def __init__(self):
     Node.__init__(self)
     # There are 7 groups already defined in phpbb, start at 8
     self.count = Counter(8)