Package conary :: Package repository :: Module findtrove :: Class TroveFinder
[hide private]
[frames] | no frames]

Class TroveFinder

source code

object --+
         |
        TroveFinder

Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setQueryOptions(self, troveSource, labelPath, defaultFlavorPath, acrossLabels, acrossFlavors, affinityDatabase, getLeaves=True, bestFlavor=True, allowNoLabel=False, troveTypes=None, exactFlavors=False, requireLatest=False) source code
 
findTroves(self, troveSpecs, allowMissing=False)
Creates the required query classes and then executes the queries, either raising a raising errors.TroveNotFound or returning a dict of results.
source code
 
_findAllForQueryClass(self, queryClass, queryList, methodName, queryOptions)
Performs the actual searches for a list of queries that all are of the same query class.
source code
 
_filterQueryResults(self, queryList, searchSpecs, troveLists, queryOptions)
Filters results by version string or other filtering if necessary before passing the troves back to be filtered by flavor.
source code
 
getFactory(self, troveSpec, affinityTroves)
Return a string that describes this troveSpec's versionStr The string returned corresponds to a function name for sorting on that versionStr type.
source code
 
_getLabelPath(self, troveSpec, queryOptions, affinityTroves, versionStr)
Returns the labelPath to use when searching for this troveSpec, as determined by the following algorithm: * if there are affinityTroves and the troveSpec doesn't specify part of the label to search, return the affinityTrove labels * if there's a labelPath specified to findTroves, use that * If we cannot allow no label path to be passed in, error.
source code
 
_convertLabelPath(self, name, labelPath, versionStr)
Given a label path and a versionString that modifies it, return the modified labelPath.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_findAllForQueryClass(self, queryClass, queryList, methodName, queryOptions)

source code 
Performs the actual searches for a list of queries that all are of the same query class. The results are stored in each individual query.

_getLabelPath(self, troveSpec, queryOptions, affinityTroves, versionStr)

source code 

Returns the labelPath to use when searching for this troveSpec,
as determined by the following algorithm:
* if there are affinityTroves and the troveSpec doesn't specify
  part of the label to search, return the affinityTrove labels
* if there's a labelPath specified to findTroves, use that
* If we cannot allow no label path to be passed in, error.
* Otherwise, return every label in the source that exists.