XׯdRddlZddlZddlZddlmZmZgdZGddeZdS)N) WizardPageDatabaseSchemaSelector)z `def`.`mysql`z`def`.`information_schema`z`def`.`performance_schema`c4eZdZfdZdZdZfdZxZS)SchemaMainViewcZtt||ddS)NzSchema Selection)superr__init__)selfmain __class__s &..\modules\db_copy_schema_selection.pyr zSchemaMainView.__init__!s* nd##,,T3EFFFFFc|jd|jtjdddd|jjjj dd|jjjj ddfd d |jjjj DDD|_ t|j |j |_|j|jddtj|_|jd |jd|j|jd|jtjd d|jd|jddS)NzcSelect the schemas to copy to the destination server and click [Start Copy >] to start the process.FT\z(.+)\z\.\cg|]\}}|Sr).0 catalog_name schema_names r z,SchemaMainView.create_ui..,s/!R!R!R2K, +!R!R!Rrc3fK|]+}tj|V,dSN)rematchgroups)r full_name match_strs r z+SchemaMainView.create_ui..,sdPQPQ09QSPXYbdmPnPnPuPuPwPwPQPQPQPQPQPQrc$g|] }|tv |Sr)SYSTEM_SCHEMAS)rxs r rz,SchemaMainView.create_ui..-sE>P>P>PAwxAOxOxOaxOxOxOr)tree_checked_callbackzMigrate MyISAM tables to InnoDBz Start Copy >)content set_paddingaddmformsnewLabelr planmigrationSource _db_modulequoteIdentifier schemaNamescatalog_schematarupdate_next_buttonschema_selector newCheckBox innodb_switchset_text set_activeadd_end next_button set_enabled)r rs @r create_uizSchemaMainView.create_ui%s5   $$$ *OPPRWY] ^ ^ ^ ^#'9>#A#L#\#\]e#f#f#f#fhlhqhviGiRibibckilililm !R!RPQPQPQPQ>P>PIgIs>P>P>PPQPQPQ!R!R!R 6d6Kcgcz{{{ -tT:::#/11 ##$EFFF %%d+++ T/777 V_R00%888 !!.111 $$U+++++rcT|jt|dSr)r7r8bool)r counts r r0z!SchemaMainView.update_next_button=s% $$d5kk33333rc d|jjj_ |j|jjj_nH#t$r;}tj dt|dddYd}~dSd}~wwxYwd|jjj j d<td|jD}tdtjj|jjjjD}t+||}t/|d krhtj d d t/|d krd nddd|ddzdzdddtjkrdSt7t8|dS)NdefzInvalid SelectionOKr$ drop_catalogschemaMappingMethodc3>K|]}|VdSrupperrschemas r rz)SchemaMainView.go_next..Ks*ZZFZZZZZZrc3>K|]}|VdSrrCrEs r rz)SchemaMainView.go_next..LsB N N6  N N N N N NrrzExisting SchemaszThe rFschemas z, zLwill be dropped in the target MySQL Server and all the existing data will bez lost. Do you want to continue?YesNo)r r*r+selectedCatalogNamer1 get_selectedselectedSchemataNames Exceptionr( Utilities show_errorstrstateapplicationDatasetgrtmodules DbMySQLFEgetSchemaNamesmigrationTarget connectionlist intersectionlen show_messagejoin ResultCancelrrgo_next)r e schema_settarget_schema_setexisting_schemasr s r rczSchemaMainView.go_nextAsA=B &: CGCWCdCdCfCfDIN * @ @      ' '(;SVVT2r R R R FFFFF GU ,-BCZZd6J6W6W6Y6YZZZZZ  N NS[=R=a=abfbkbpcAcL>M>M N N NNN 7 78I J JKK  1 $ $,,-?-?^abr^s^swx^x^xRZRZHSHSHJNJSJSTdJeJeJeJeBfbBc5B68=tRIILRL_`` nd##++-----s-A B 0BB )__name__ __module__ __qualname__r r9r0rc __classcell__)r s@r rrstGGGGG,,,0444.........rr)r(rWr workbench.uirrr!rrrr rms|, ;;;;;;;;_^^7.7.7.7.7.Z7.7.7.7.7.r