Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/node_shell.py   python-ironicclient(Download)
              'updated_at', 'uuid']
    data = dict([(f, getattr(node, f, '')) for f in fields])
    utils.print_dict(data, wrap=72)
 
 
    field_list.append('uuid')
    data = dict([(f, getattr(node, f, '')) for f in field_list])
    utils.print_dict(data, wrap=72)
 
 
def do_node_get_console(cc, args):
    """Return the connection information about the console."""
    info = cc.node.get_console(args.node)
    utils.print_dict(info, wrap=72)
 

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/chassis_shell.py   python-ironicclient(Download)
def _print_chassis_show(chassis):
    fields = ['uuid', 'description', 'created_at', 'updated_at', 'extra']
    data = dict([(f, getattr(chassis, f, '')) for f in fields])
    utils.print_dict(data, wrap=72)
 
    field_list.append('uuid')
    data = dict([(f, getattr(chassis, f, '')) for f in field_list])
    utils.print_dict(data, wrap=72)
 
 

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/port_shell.py   python-ironicclient(Download)
def _print_port_show(port):
    fields = ['address', 'created_at', 'extra', 'node_uuid', 'updated_at',
              'uuid']
    data = dict([(f, getattr(port, f, '')) for f in fields])
    utils.print_dict(data, wrap=72)
    field_list.append('uuid')
    data = dict([(f, getattr(port, f, '')) for f in field_list])
    utils.print_dict(data, wrap=72)
 
 

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/driver_shell.py   python-ironicclient(Download)
def _print_driver_show(driver):
    fields = ['name', 'hosts']
    data = dict([(f, getattr(driver, f, '')) for f in fields])
    utils.print_dict(data, wrap=72)
 

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/test_utils.py   python-ironicclient(Download)
    def test_prettytable(self):
        output_dict = six.StringIO()
        utils.print_dict({'K': 'k', 'Key': 'Value'}, outfile=output_dict)
        self.assertEqual('''\
+----------+-------+
    def test_print_dict_unicode(self):
        unicode_str = u'\u2026'
        output_file = six.StringIO()
        utils.print_dict({'K': 'k', 'Key': unicode_str}, outfile=output_file)
        self.assertIn(unicode_str, output_file.getvalue())