def step6():
    response.view = 'wizard/step.html'
    params = dict(session.app['params'])
    app = session.app['name']
    form = SQLFORM.factory(
        Field('generate_model', 'boolean', default=True),
        Field('generate_controller', 'boolean', default=True),
        Field('generate_views', 'boolean', default=True),
        Field('generate_menu', 'boolean', default=True),
        Field('apply_layout', 'boolean', default=True),
        Field('erase_database', 'boolean', default=True),
        Field('populate_database', 'boolean', default=True),
        _id="generate_form", _class="form-horizontal span7 well well-small")
    if form.accepts(request.vars):
        if DEMO_MODE:
            session.flash = T('Application cannot be generated in demo mode')
            redirect(URL('index'))
        create(form.vars)
        session.flash = 'Application %s created' % app
        redirect(URL('generated'))
    return dict(step=app % '6: Generate app "%s"', form=form)
dataset/ETHPy150Open uwdata/termite-data-server/web2py/applications-original/admin/controllers/wizard.py/step6/swapped operands of `%`