Exemplo n.º 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
Exemplo n.º 2
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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
    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)
Exemplo n.º 6
0
 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
Exemplo n.º 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
Exemplo n.º 8
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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 11
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
Exemplo n.º 12
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
Exemplo n.º 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
Exemplo n.º 14
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
Exemplo n.º 15
0
 def __init__(self, page):
     Node.__init__(self)
     self.page = page
Exemplo n.º 16
0
 def __init__(self):
     Node.__init__(self)
     self.count = Counter(len(DEFAULT_SMILIES))
Exemplo n.º 17
0
 def __init__(self, page):
     Node.__init__(self)
     self.page = page
Exemplo n.º 18
0
 def __init__(self):
     Node.__init__(self)
     self.newid = 1
     self.name = ""
     self.colour = ""
Exemplo n.º 19
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)
Exemplo n.º 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)
Exemplo n.º 21
0
 def __setstate__(self, state):
     Node.__setstate__(self, state)
     self.linkrewriter = LinkRewriter(self)
Exemplo n.º 22
0
 def __init__(self):
     Node.__init__(self)
     self.newid = 1
     self.name = ""
     self.colour = ""
Exemplo n.º 23
0
 def __setstate__(self, state):
     Node.__setstate__(self, state)
     self.linkrewriter = LinkRewriter(self)
Exemplo n.º 24
0
 def __init__(self):
     Node.__init__(self)
     self.count = Counter(len(DEFAULT_SMILIES))
Exemplo n.º 25
0
 def __init__(self):
     Node.__init__(self)
     # There are 7 groups already defined in phpbb, start at 8
     self.count = Counter(8)
Exemplo n.º 26
0
 def __init__(self):
     Node.__init__(self)
     # There are 7 groups already defined in phpbb, start at 8
     self.count = Counter(8)