Ejemplo n.º 1
0
def url_new(id, url):
    id = int(id)
    if id_by_url(url):
        return
    u = Url.get_or_create(id=id)
    u.url = url
    u.save()
    mc_id_by_url.set(url.lower(), id)
    mc_url_by_id.set(id, url)
    from search_zsite import search_new
    search_new(id)
Ejemplo n.º 2
0
def user_new(mail, password=None, name=None, sex=0):
    user = user_new_by_mail(mail, password, name)
    user_id = user.id
    user_info_new(user_id, sex=sex)
    search_new(user_id)
    return user_id
Ejemplo n.º 3
0
def user_new(mail, password=None, name=None, sex=0):
    user = user_new_by_mail(mail, password, name)
    user_id = user.id
    user_info_new(user_id, sex=sex)
    search_new(user_id)
    return user_id