Exemplo n.º 1
0
def task_createuser(environ, start_response):
    request = environ['werkzeug.request']

    kwargs = kwargs_from_params(request,
        form=['mpass', 'usertocreate', 'passtocreate', 'account', 'reign'],
        admin=True,
    )
    kwargs['reign'] = kwargs.pop('reign').split(',')

    return staff_interface.add_staff_proxy(**kwargs)
Exemplo n.º 2
0
def task_createuser(environ, start_response):
    request = environ['werkzeug.request']

    kwargs = kwargs_from_params(request,
        form=['mpass', 'usertocreate', 'passtocreate', 'account', 'reign'],
        admin=True,
    )
    kwargs['reign'] = kwargs.pop('reign').split(',')

    return staff_interface.add_staff_proxy(**kwargs)
Exemplo n.º 3
0
def task_createuser(environ, start_response):
    request = environ['werkzeug.request']

    params = {'cookies': ['wakaadmin'],
              'form':    ['mpass', 'usertocreate', 'passtocreate', 'account',
                          'reign']}

    kwargs = kwargs_from_params(request, params)
    kwargs['reign'] = kwargs.pop('reign').split(',')

    return staff_interface.add_staff_proxy(**kwargs)
Exemplo n.º 4
0
def task_createuser(environ, start_response):
    request = environ['werkzeug.request']

    params = {
        'cookies': ['wakaadmin'],
        'form': ['mpass', 'usertocreate', 'passtocreate', 'account', 'reign']
    }

    kwargs = kwargs_from_params(request, params)
    kwargs['reign'] = kwargs.pop('reign').split(',')

    return staff_interface.add_staff_proxy(**kwargs)