Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo n.º 5
0
 def __init__(self):
     meeplib.load_state()