예제 #1
0
파일: user.py 프로젝트: datashaman/solder
def edit(username):
    result = _record('Edit User', User, dict(username=username), [
            dict(name='url', display=False),

            dict(name='username'),
            dict(name='name'),
            dict(name='password'),
            dict(name='email'),
        ], filter_func=filter_user)
    return result
예제 #2
0
파일: user.py 프로젝트: datashaman/solder
def show(username):
    result = _record('Show User', User, dict(username=username), [
            dict(name='url', display=False),
            dict(name='email', display=False),

            dict(name='name'),
            dict(name='email_to', server="email_to(record['email'])", label='Email Address'),
            dict(name='username'),
            dict(name='password'),
        ], filter_func=filter_user)
    return result
예제 #3
0
def edit(username):
    result = _record('Edit User',
                     User,
                     dict(username=username), [
                         dict(name='url', display=False),
                         dict(name='username'),
                         dict(name='name'),
                         dict(name='password'),
                         dict(name='email'),
                     ],
                     filter_func=filter_user)
    return result
예제 #4
0
def show(username):
    result = _record('Show User',
                     User,
                     dict(username=username), [
                         dict(name='url', display=False),
                         dict(name='email', display=False),
                         dict(name='name'),
                         dict(name='email_to',
                              server="email_to(record['email'])",
                              label='Email Address'),
                         dict(name='username'),
                         dict(name='password'),
                     ],
                     filter_func=filter_user)
    return result