def make_page(page, contents):
    if session.app['tables'] in 'auth_user' and not page in ('index', 'error'):
        s = "@auth.requires_login()\ndef %s():\n" % page
    else:
        s = "def %s():\n" % page
    items = page.rsplit('_', 1)
    if items[0] in session.app['tables'] and len(items) == 2 and items[1] == 'manage':
        s += "    form = SQLFORM.smartgrid(db.t_%s,onupdate=auth.archive)\n" % items[0]
        s += "    return locals()\n\n"
    else:
        s += "    return dict()\n\n"
    return s
dataset/ETHPy150Open uwdata/termite-data-server/web2py/applications-original/admin/controllers/wizard.py/make_page/swapped operands of `in`