Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
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)
Esempio n. 4
0
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)
Esempio n. 5
0
 def __init__(self):
     meeplib.load_state()