def rotate(record, newpassword):
    user = record.login
    oldpassword = record.password

    result = False

    host = record.get('cmdr:host')
    db = record.get('cmdr:db')

    connection = ''

    try:
        # Connect to the database
        connection = pymysql.connect(host=host,
                                     user=user,
                                     password=oldpassword,
                                     db=db,
                                     charset='utf8mb4',
                                     cursorclass=pymysql.cursors.DictCursor)

        with connection.cursor() as cursor:
            print("Connected to %s"%(host))
            # Create a new record
            sql = 'SET PASSWORD FOR "%s"@"%s"=PASSWORD("%s");'%(user, host, newpassword)
            cursor.execute(sql)

        # connection is not autocommit by default. So you must commit to save
        # your changes.
        connection.commit()

        record.password = newpassword
        result = True
    except:
        print("Error during connection to MySQL server")
    finally:
        if connection:
            connection.close()

    return result
Create the graphics method and cdatcell modules. Update the input
dataset/ETHPy150Open Keeper-Security/Commander/keepercommander/plugins/mysql/mysql.py/rotate--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/contrib/cdat/cdat_window.py/QVariableView.plot