def populate(tables):
    s = 'from gluon.contrib.populate import populate\n'
    s += 'if db(db.auth_user).isempty():\n'
    for table in sort_tables(tables):
        t = table == 'auth_user' and 'auth_user' or 't_' + table
        s += t % "     populate(db.%s,10)\n"
    return s
dataset/ETHPy150Open uwdata/termite-data-server/web2py/applications-original/admin/controllers/wizard.py/populate/swapped operands of `%`