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
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