def initialize(): print "enter initialize" meeplib.load_state() u = meeplib.User('test', 'foo') t = meeplib.Thread('Greetings Earthlings') m = meeplib.Message('The meep message board is open.', u) t.add_post(m)
def initialize(): # load pickle file meeplib.load_state() # create a default user u = meeplib.User('test', 'foo') # create a thread t = meeplib.Thread('Test Thread') # create a single message m = meeplib.Message('This is my message!', u) # save the message in the thread t.add_post(m)
def __init__(self): meeplib.load_state()