Xׯd"JddlZddlZddlmZddlmZGddeZdS)N) WizardPage)server_version_str2tuplec,eZdZdZdZdZdZdZdS)MainViewctj||dd||_|j|dddtjjdS)NOverviewT) no_buttons migration)r__init__mainadd_content_pagegrtmodules WorkbenchinitializeOtherRDBMS)selfr s ..\modules\migration_overview.pyr zMainView.__init__s\D$ tDDDD  ""4ZMMM 2244444ctjd}|d|tj|j|dd|jd|jdtjd}|d|j|ddtjd }|d |tj |j|ddtjd }|d |j|ddtj d}|tjd ddtj }| d | |j||dd|tjd ddtj }| d| |j||dd|tjd ddtj }| d| d||dd|tjd dd|j|dddS)Nz/Welcome to the MySQL Workbench Migration WizardWelcomeFT zThis wizard will assist you in migrating tables and data from a supported database system to MySQL. You can also use this wizard to copy databases from one MySQL instance to another. Introduction PrerequisitesaBBefore starting, check the following preparation steps: - The Migration Wizard uses ODBC to connect to the source database. You must have an ODBC driver for the source database installed and configured, as Workbench does not bundle any such drivers. For MySQL connections, the native client library is used. - Ensure you can connect to both source and target RDBMS servers. - Make sure you have privileges to read schema information and data from the source database and create objects and insert data in the target MySQL server. - The max_allowed_packet option in the target MySQL server must be large enough to fit the largest field value to be copied from source (especially BLOBs and large TEXT fields). The wizard supports migrating from specific database systems, but a "generic" RDBMS support is also provided. The generic support is capable of migrating tables from many RDBMS that can be connected to using ODBC, although certain type mappings may not be performed correctly. A manual mapping step is provided for reviewing and fixing any migration problems that could occur.zPrerequisites SpecificationszStart MigrationOpen ODBC AdministratorzView Documentationc@tjdS)Nz7http://dev.mysql.com/doc/workbench/en/wb-migration.html)mforms Utilitiesopen_urlrrz$MainView.create_ui..Ss"0@0I0IKD1E1Er)rnewLabelset_name set_style BigBoldStylecontentadd set_spacing set_padding BoldStylenewBox newButtonset_textadd_clicked_callbackstart start_odbcadd_end)rlabelbox button_start button_odbc button_docs r create_uizMainView.create_ui$s  QRR y!!! +,,, t,,,   $$$   $$$!cdd ~&&& t,,,00 ''' ())) t,,, !N O O 5666 t,,,mD!! ##T4000')) /000))$*555  dD))) ##T4000&(( 6777((999  T4((( ##T4000%'' 0111'')E)E F F F  D$''' ##T4000 S%.....rctjjs%tjddddddSdS)Nrz.ODBC Administrator utility could not be found.OKr)rr PyWbUtilsstartODBCAdminrr show_error)rs rr1zMainView.start_odbcYse{$3355 C   ' '(ACsuy{}@B C C C C C C Crc tjd}|dtjd}|dtj}|d||dd||ddtjd}|d|dtj}|d||ddtjd}||ddtjd}|dtj}| d ||dd||ddtjd} | dtjd } | tj | | ddtj tj } | | ddtjd} | dtj} | d tj}| d | | dd| |dd| | dd|| dd||ddtjd}tj}|d |tj||dd||dd||dddS)NTFzmigration_logo.pngrzmigration_title.pngzTo perform a new migration click the [Start New Migration] button below. To re-run a previous migration or to perform a new migration based on a previous migration please double click one of the migration projects below.zStart New MigrationzProject OverviewzRe-Run MigrationzEdit Migration Projectzmigration_background.png)rr,r)r* newImageBox set_imager(r#r-r.r%r+ newTreeView TreeDefaultset_image_alignTopRight)r container left_side_box logo_imager' title_image help_labelwrapper_button_boxbutton_new_migration project_box project_label project_treeproject_button_boxbutton_rerun_migrationbutton_edit_migrationright_side_boxright_side_images r create_uixzMainView.create_uix^sM$'' b!!! e,, !!!$$$')) 1222*eT222 mUD111-&&AB(** 3444 K---_&FGG   Jt,,,#]400&&q)))%/11%%&;<<<3UDAAA &t444mE** """(:;;  0111 ud333)&*<==  dD111#]400&&q)))!'!1!3!3''(:;;; & 0 2 2&&'?@@@5udCCC4eTBBB*E4888 K--- gud+++ u--!-//""#=>>>((999+UD999 ndD111 D$'''''rc < ddl}t|j}|dkr-tjdd|jzdddddn5#t $r(tjdd dddd dYnwxYw|jdS) Nr)r@zDependency WarningaWe have detected that you have pyodbc %s installed but the migration tool requires pyodbc 2.1.8 or newer for migrations from RDBMSes other than MySQL. Please install a supported pyodbc version. You may proceed with the currently installed version, but the migration may not succeed. To install the latest version of pyodbc, execute "sudo easy_install pyodbc" from a command line shell.r:rzwb.migration.oldpyodbczDon't show this message againzwCould not import the pyodbc python module. You need pyodbc 2.1.8 or newer for migrations from RDBMSes other than MySQL.zwb.migration.nopyodbc) pyodbcrversionrrshow_message_and_remember ImportErrorr r0)rrZpyodbc_versions rr0zMainView.starts 5 MMM6fnEEN )) ::;Ojlrlz{}ACEGI,3 555 4 4 4   6 67KMR*2  4 4 4 4 4 4 sA/B?BN)__name__ __module__ __qualname__r r8r1rVr0r!rrrrsd5552/2/2/jCCC <(<(<(~rr)rr workbench.uirworkbench.utilsrrr!rrrds{, ######444444UUUUUzUUUUUr