Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files/MySQL/MySQL Workbench 6.3 CE/workbench/ |
Upload File : |
ó 2z”Xc @ s5 d d l Z d d l Z d e j f d „ ƒ YZ d S( iÿÿÿÿNt DatabaseSchemaSelectorc B sV e Z d Z d „ i d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sq Widget to select database schemata within a collection of catalogs (optional) and schemata This wigdet will help you to display a set of schemata in a nice tree structure, grouping them by catalogs (if the catalog information is supported/available). Next to each listed schema is a checkbox for the selection/unselection of the schema. The user can quickly select all of the schemata for a given catalog by clicking on the checkbox next to the catalog name. .. image:: ../../../library/python/workbench/doc/images/schema_selection_widget.png :param database_objects: Pass a list/tuple of schema names if you don't use catalogs. If you do use catalogs then pass a list of tuples of the form ``(catalog_name, schema_list)`` where :attr:`schema_list` is a list/tuple with the schemata that belongs to the given :attr:`catalog_name`. :type database_objects: list/tuple :param tree_checked_callback: A function object that will be called by this widget whenever a schema is checked/unchecked. It should accept an integer argument with the number of selected schemata. :type tree_checked_callback: callable :param ui_settings: A dictionary to customize the appearance of the widget. In case you need to customize something, just pass the relevant modifications in this dict. The other (default) settings are kept. Check the definition of :attr:`self.ui_settings` in the class implementation to see the configurable settings. :type ui_settings: dict .. rubric:: Sample usage: :: db_objects = [ ('catalog1', ('schema1', 'schema2')), ('catalog2', ('schema3', 'schema4')) ] content = mforms.newBox() object_selector = DatabaseObjectSelector(db_objects) content.add(object_selector, True) c C s d S( N( t None( t n( ( sZ C:\Program Files\MySQL\MySQL Workbench 6.3 CE\workbench\database_schema_selector_widget.pyt <lambda>? s c C sX t t | ƒ j t ƒ | | _ | | _ t | t t f ƒ ob t | ƒ d k ob t d „ | Dƒ ƒ | _ i i d d 6t d 6d 6i d d 6d 6i d d 6| j d 6t d 6d 6| _ t | t ƒ rxV | j ƒ D]E \ } } | | j k sÐ t | t ƒ rqÐ n | j | j | ƒ qÐ Wn | j rPt d „ | Dƒ ƒ | _ t | ƒ | _ n d | _ | | _ g | _ g | _ | j d ƒ t j t j ƒ | _ | j j t j d d t ƒ | j j t j | j rÐd n d d t ƒ | j j ƒ | j j | j ƒ | j j! t ƒ | j"