ó Ø@Qc@sWddlZddlZddlmZmZdddgZdefd„ƒYZdS(iÿÿÿÿN(t WizardPagetDatabaseSchemaSelectors def.mysqlsdef.information_schemasdef.performance_schematSchemaMainViewcBs,eZd„Zd„Zd„Zd„ZRS(cCstt|ƒj|dƒdS(NsSchema Selection(tsuperRt__init__(tselftmain((s&..\modules\db_copy_schema_selection.pyRscCs)|jjdƒ|jjtjdƒttƒg|jjj j D]%}|t krB|j dƒd^qB|_ t|j d|jƒ|_|jj|jttƒtjƒ|_|jjdƒ|jjtƒ|jj|jtƒ|jjtjdƒtƒ|jjdƒ|jjtƒdS( NiscSelect the schemas to copy to the destination server and click [Start Copy >] to start the process.t.iÿÿÿÿttree_checked_callbacksMigrate MyISAM tables to InnoDBts Start Copy >(tcontentt set_paddingtaddtmformstnewLabeltFalsetTrueRtplantmigrationSourcet schemaNamestSYSTEM_SCHEMASt partitiontcatalog_schemataRtupdate_next_buttontschema_selectort newCheckBoxt innodb_switchtset_textt set_activetadd_endt next_buttont set_enabled(Rt full_name((s&..\modules\db_copy_schema_selection.pyt create_ui s>cCs|jjt|ƒƒdS(N(RRtbool(Rtcount((s&..\modules\db_copy_schema_selection.pyR5scCsod|jjj_y|jjƒ|jjj_Wn6tk ri}tj j dt |ƒdddƒdSXd|jjj j dCscss|]}|jƒVqdS(N(R((R)R*((s&..\modules\db_copy_schema_selection.pys DsisExisting Schemass The %s %s iR*tschemass, sLwill be dropped in the target MySQL Server and all the existing data will bes lost. Do you want to continue?tYestNo(RRRtselectedCatalogNameRt get_selectedtselectedSchemataNamest ExceptionR t Utilitiest show_errortstrtstatetapplicationDatatsettgrttmodulest DbMySQLFEtgetSchemaNamestmigrationTargett connectiontlistt intersectiontlent show_messagetjoint ResultCancelRRtgo_next(Rtet schema_setttarget_schema_settexisting_schemas((s&..\modules\db_copy_schema_selection.pyRD9s "1 2(t__name__t __module__RR!RRD(((s&..\modules\db_copy_schema_selection.pyRs   (R R8t workbench.uiRRRR(((s&..\modules\db_copy_schema_selection.pyts