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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Load a :class:`dpm.index.Index` specified by
:class:`dpm.spec.Spec` spec_str.

:param spec_str: a :class:`package spec <dpm.spec.Spec>`.
:param all_index: hack param to state that spec is all about index (no
    package name). 

        def load_index(spec_str, all_index=False):
    '''Load a :class:`dpm.index.Index` specified by
    :class:`dpm.spec.Spec` spec_str.
    
    :param spec_str: a :class:`package spec `.
    :param all_index: hack param to state that spec is all about index (no
        package name). 
    '''
    spec = dpm.spec.Spec.parse_spec(spec_str, all_index=all_index)
    index, path = spec.index_from_spec()
    return index
        


src/d/p/dpm-0.10/dpm/tests/test_misc.py   dpm(Download)
    def test_load_index(self):
        import dpm.index.base
        index = dpm.load_index(self.index_spec, all_index=True)
        assert isinstance(index, dpm.index.base.FileIndex)
        assert index.index_path == self.repo_path, (index.index_path,

src/d/p/dpm-old-HEAD/dpm/tests/test_misc.py   dpm-old(Download)
    def test_load_index(self):
        import dpm.index.base
        index = dpm.load_index(self.index_spec, all_index=True)
        assert isinstance(index, dpm.index.base.FileIndex)
        assert index.index_path == self.repo_path, (index.index_path,