34 lines
897 B
Python
Raw Normal View History

class Forum (object):
def __init__ (self, title=None):
self.title = title
self.users = []
self.categories = []
class Post (object):
def __init__ (self, title=None, body=None, author=None):
self.title = title
self.body = body
self.author = author
class Thread (object):
def __init__ (self, title=None):
self.title = title
self.children = []
class User (object):
def __init__ (self, name=None, signature=None):
self.name = name
self.signature = signature
class Category (object):
def __init__ (self, title=None, description=None):
self.title = title
self.description = description
self.children = []
class Board (object):
def __init__ (self, title=None, description=None):
self.title = title
self.description = description
self.children = []