def user_dict_save(user_dict, context):
    model = context['model']
    session = context['session']
    user = context.get('user_obj')
    User = model.User
    if user:
        user_dict['id'] = user.id
    if (('password' in user_dict) and (not len(user_dict['password']))):
        del user_dict['password']
    user = d.table_dict_save(user_dict, User, context)
    return user
def user_dict_save(user_dict, context):
    model = context['model']
    session = context['session']
    user = context.get('user_obj')
    User = model.User
    if user:
        user_dict['id'] = user.id
    if (('password' in user_dict) and (not len(user_dict['password']))):
        del user_dict['password']
    user = d.table_dict_save(user_dict, User, context)
    return user