def create_editor(host, account, password): c = server.ObserverClient() c.server = host c.setup(account, password) return editor(c)
def create_editor(host, account, password, avatar='creator'): client=server.ObserverClient() client.server = host client.setup(account, password, avatar) avatar = client.create_avatar(avatar) return editor(client, avatar)