1. Konstantine Rybnikov
  2. openju

Source

openju / openju / controllers / user.py

#!/usr/bin/python
# -*- coding: utf-8 -*-

from openju import bl, g, _

from openju.views import \
    render_user_info

def register(nick):
    bl.user.register(g.user_jid, nick)
    return _(u"Congratilations! You've been successfully registered")

def info(nick):
    user = bl.user.get_user(nick)
    return render_user_info(user)

# def new_nick(nick):
#     bl.user.set_nickname(g.user_jid, nick)
#     return u'New nickname is set to: %s' % nick