Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/c/e/ceilometer-HEAD/ceilometer/network/statistics/opendaylight/driver.py   ceilometer(Download)
                resource_meta = {'flow_id': statistic['flow']['id'],
                                 'table_id': statistic['tableId']}
                for key, value in utils.dict_to_keyval(statistic['flow'],
                                                       'flow'):
                    resource_meta[key.replace('.', '_')] = value

src/c/e/ceilometer-HEAD/ceilometer/storage/impl_sqlalchemy.py   ceilometer(Download)
            if rmetadata:
                if isinstance(rmetadata, dict):
                    for key, v in utils.dict_to_keyval(rmetadata):
                        try:
                            _model = META_TYPE_MAP[type(v)]

src/c/e/ceilometer-HEAD/ceilometer/storage/impl_hbase.py   ceilometer(Download)
def dump_metadata(meta):
    resource_metadata = {}
    for key, v in utils.dict_to_keyval(meta):
        resource_metadata[key] = v
    return resource_metadata

src/c/e/ceilometer-HEAD/ceilometer/storage/sqlalchemy/migrate_repo/versions/020_add_metadata_tables.py   ceilometer(Download)
            meter_id = row['id']
            rmeta = json.loads(row['resource_metadata'])
            for key, v in utils.dict_to_keyval(rmeta):
                ins = None
                if isinstance(v, basestring) or v is None:

src/c/e/ceilometer-HEAD/ceilometer/tests/test_utils.py   ceilometer(Download)
                'nested2': [{'c': 'A'}, {'c': 'B'}]
                }
        pairs = list(utils.dict_to_keyval(data))
        self.assertEqual([('a', 'A'), ('b', 'B'),
                         ('nested2[0].c', 'A'),