def step2():
    response.view = 'wizard/step.html'
    form = SQLFORM.factory(Field('table_names', 'list:string',
                                 default=session.app['tables']), _class="span7 well well-small")
    if form.accepts(request.vars):
        table_names = [clean(t) for t in listify(form.vars.table_names)
                       if t.strip()]
        if [t for t in table_names if t.startswith('auth_') and
                not t == 'auth_user']:
            form.error.table_names = \
                T('invalid table names (auth_* tables already defined)')
        else:
            session.app['tables'] = table_names
            for table in session.app['tables']:
                if not session.app in 'table_' + table:
                    session.app['table_' + table] = ['name']
                if not table == 'auth_user':
                    name = table + '_manage'
                    if not name in session.app['pages']:
                        session.app['pages'].append(name)
                        session.app['page_' + name] = \
                            '## Manage %s\n\n{{=form}}' % (table)
            if session.app['tables']:
                redirect(URL('step3', args=0) + '/#xwizard_form')
            else:
                redirect(URL('step4') + '/#xwizard_form')
    return dict(step='2: Tables', form=form)
dataset/ETHPy150Open uwdata/termite-data-server/web2py/applications-original/admin/controllers/wizard.py/step2/swapped operands of `in`