コード例 #1
0
    def __init__(self,title, author, creation_time, question):

        #self.question_id = question_id
        self.title = title
        self.author = author
        self.creation_time = creation_time
        self.question = question
        self.func_obj = memory.func()
        #self.noofreplies = noofreplies
        #self.views = views
        self.likes = 0
        self.dislikes = 0
コード例 #2
0
 def __init__(self,forum_name,time):
     self.forum_name = forum_name
     self.time = time
     self.author = 2
     self.func_obj = memory.func()
コード例 #3
0
 def __init__(self,forum_name,cat_name,post_name,answer):
     self.forum_name = forum_name
     self.cat_name = cat_name
     self.post_name = post_name
     self.answer_name = answer
     self.funobj = memory.func()
コード例 #4
0
 def __init__(self, cat_name, description):
     self.cat_name = cat_name
     self.description = description
     self.func_obj = memory.func()
コード例 #5
0
 def __init__(self,user_name,password):
     self.user_name = user_name
     self.password = password
     self.funobj = memory.func()