Lines Matching refs:index
61 index = layerindexlib.LayerIndexObj()
63 index.config = {}
64 index.config['TYPE'] = self.type
65 index.config['URL'] = url
70 index.config['DESCRIPTION'] = unquote(params['desc'])
72 index.config['DESCRIPTION'] = up.path
75 index.config['CACHE'] = params['cache']
79 index.config['BRANCH'] = branches
84 def load_cache(path, index, branches=[]): argument
103 index.add_raw_element('branches', layerindexlib.Branch, newpBranch)
116 index.add_raw_element(lName, lType, pindex[lName])
120 load_cache(up.path, index, branches)
121 return index
129 load_cache(fpath, index, branches)
131 return index
174 index = layerindexlib.LayerIndexObj()
176 index.config = {}
177 index.config['TYPE'] = self.type
178 index.config['URL'] = url
183 index.config['DESCRIPTION'] = unquote(params['desc'])
185 index.config['DESCRIPTION'] = up.hostname
188 index.config['CACHE'] = params['cache']
192 index.config['BRANCH'] = branches
197 … index.apilinks = _get_json_response(apiurl=url, username=up.username, password=up.password)
210 logger.debug("Loading %s from %s" % (branches, index.apilinks['branches']))
213 pindex['branches'] = _get_json_response(index.apilinks['branches'] + filter,
217 return index
218 index.add_raw_element("branches", layerindexlib.Branch, pindex['branches'])
221 logger.debug("Loading %s from %s" % ('layerItems', index.apilinks['layerItems']))
225 pindex['layerItems'] = _get_json_response(index.apilinks['layerItems'],
229 return index
230 index.add_raw_element("layerItems", layerindexlib.LayerItem, pindex['layerItems'])
235 for branch in index.branches:
236 filter = "?filter=branch__name:%s" % index.branches[branch].name
238 logger.debug("Loading %s from %s" % ('layerBranches', index.apilinks['layerBranches']))
241 pindex['layerBranches'] = _get_json_response(index.apilinks['layerBranches'] + filter,
245 return index
246 … index.add_raw_element("layerBranches", layerindexlib.LayerBranch, pindex['layerBranches'])
252 filter = "?filter=layerbranch__branch__name:%s" % index.branches[branch].name
259 logger.debug("Loading %s from %s" % (lName, index.apilinks[lName]))
262 pindex[lName] = _get_json_response(index.apilinks[lName] + filter,
264 index.add_raw_element(lName, lType, pindex[lName])
266 return index
268 def store_index(self, url, index): argument
289 layerbranches = index.layerBranches
297 for obj in getattr(index, objects, None):
299 if getattr(index, objects)[obj].layerbranch_id == layerbranchid:
300 filtered.append(getattr(index, objects)[obj]._data)
305 filtered.append(getattr(index, objects)[obj]._data)
331 for entry in index._index:
333 if entry in index.config['local'] or \
355 for entry in index._index:
357 if entry in index.config['local'] or \
372 layerdependency = layerindexlib.LayerDependency(index, layerdep)
386 …fname = index.config['DESCRIPTION'] + '__' + pindex['branches'][0]['name'] + '__' + pindex['layerI…