|
|
__init__(self,
repMap,
userMap,
localRepository=None,
pwPrompt=None,
entitlementDir=None,
downloadRateLimit=0,
uploadRateLimit=0,
entitlements=None,
proxy=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getUserMap(self)
The user/password map can be updated at runtime since we're
prompting the user for passwords. |
source code
|
|
|
|
|
|
|
updateMetadata(self,
troveName,
branch,
shortDesc,
longDesc='',
urls=[],
licenses=[],
categories=[],
source='local',
language='C') |
source code
|
|
|
|
| updateMetadataFromXML(self,
troveName,
branch,
xmlStr) |
source code
|
|
|
|
getMetadata(self,
troveList,
label,
language='C') |
source code
|
|
|
|
|
|
|
| addUserByMD5(self,
label,
user,
salt,
password) |
source code
|
|
|
|
|
|
|
| addDigitalSignature(self,
name,
version,
flavor,
digsig) |
source code
|
|
|
|
|
|
|
| addNewAsciiPGPKey(self,
label,
user,
keyData) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| updateRoleMembers(self,
label,
role,
members) |
source code
|
|
|
|
| setRoleCanMirror(self,
reposLabel,
role,
canMirror) |
source code
|
|
|
|
| setRoleIsAdmin(self,
reposLabel,
role,
admin) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| addAcl(self,
reposLabel,
role,
trovePattern,
label,
write=False,
remove=False) |
source code
|
|
|
|
| editAcl(self,
reposLabel,
role,
oldTrovePattern,
oldLabel,
trovePattern,
label,
write=False,
canRemove=False) |
source code
|
|
|
|
| deleteAcl(self,
reposLabel,
role,
trovePattern,
label) |
source code
|
|
|
|
| changePassword(self,
label,
user,
newPassword) |
source code
|
|
|
|
|
|
|
| addEntitlementKeys(self,
serverName,
entClass,
entKeys) |
source code
|
|
|
|
| deleteEntitlementKeys(self,
serverName,
entClass,
entKeys) |
source code
|
|
|
|
| addEntitlementClass(self,
serverName,
entClass,
role) |
source code
|
|
|
|
| deleteEntitlementClass(self,
serverName,
entClass) |
source code
|
|
|
|
| addEntitlementClassOwner(self,
serverName,
role,
entClass) |
source code
|
|
|
|
| deleteEntitlementClassOwner(self,
serverName,
role,
entClass) |
source code
|
|
|
|
| listEntitlementKeys(self,
serverName,
entClass) |
source code
|
|
|
|
|
|
|
| getEntitlementClassesRoles(self,
serverName,
classList) |
source code
|
|
|
|
| setEntitlementClassesRoles(self,
serverName,
classInfo) |
source code
|
|
|
|
|
|
|
|
|
|
| troveNamesOnServer(self,
server,
troveTypes=1) |
source code
|
|
|
|
| getTroveLeavesByPath(self,
pathList,
label) |
source code
|
|
|
|
| getTroveVersionsByPath(self,
pathList,
label) |
source code
|
|
|
|
iterFilesInTrove(self,
troveName,
version,
flavor,
sortByPath=False,
withFiles=False)
Returns a generator for (pathId, path, fileId, version) tuples for
all of the files in the trove. |
source code
|
|
|
|
|
|
|
| _setTroveTypeArgs(self,
serverIdent,
*args,
**kwargs) |
source code
|
|
|
dict of lists
|
|
|
dict of lists
|
|
|
dict of lists
|
|
|
|
|
|
dict of lists
|
|
|
|
|
|
dict
|
getAllTroveFlavors(self,
troveDict)
Converts a dictionary of the format retured by getAllTroveLeaves()
to contain dicts of { version : flavorList } sets instead of
containing lists of versions. |
source code
|
|
|
|
| _getTroveInfoByVerInfoTuples(self,
troveSpecs,
bestFlavor,
method,
branches=False,
labels=False,
versions=False,
troveTypes=1,
getLeaves=False,
splitByBranch=False) |
source code
|
|
|
|
| _getTroveInfoByVerInfo(self,
troveSpecs,
bestFlavor,
method,
branches=False,
labels=False,
versions=False,
troveTypes=1,
getLeaves=False,
splitByBranch=False) |
source code
|
|
|
|
|
|
|
|
|
versions.Version
|
|
|
|
|
|
|
|
|
boolean
|
hasTrove(self,
name,
version,
flavor)
Tests if the repository contains a particular version of a
trove. |
source code
|
|
|
|
|
|
trove.Trove
|
getTrove(self,
troveName,
troveVersion,
troveFlavor,
withFiles=True,
callback=None)
PUBLIC API |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| createChangeSet(self,
jobList,
withFiles=True,
withFileContents=True,
excludeAutoSource=False,
recurse=True,
primaryTroveList=None,
callback=None) |
source code
|
|
|
|
createChangeSetFile(self,
jobList,
fName,
recurse=True,
primaryTroveList=None,
callback=None,
changesetVersion=None,
mirrorMode=False)
Create a changeset file based on a job list. |
source code
|
|
|
|
| _getChangeSet(self,
chgSetList,
recurse=True,
withFiles=True,
withFileContents=True,
target=None,
excludeAutoSource=False,
primaryTroveList=None,
callback=None,
forceLocalGeneration=False,
changesetVersion=None,
mirrorMode=False) |
source code
|
|
|
|
|
|
|
|
|
|
getFileVersions(self,
fullList,
lookInLocal=False,
allowMissingFiles=False)
Returns the file objects for the (pathId, fileId, version) pairs
in list; the order returns is the same order in the list. |
source code
|
|
|
|
|
|
|
|
|
|
getPackageBranchPathIds(self,
sourceName,
branch,
dirnames=[],
fileIds=None)
Searches all of the troves generated from sourceName on the given
branch, and returns the latest pathId for each path as a dictionary
indexed by path. |
source code
|
|
|
|
|
|
|
getTrovesBySource(self,
sourceName,
sourceVersion)
Returns (troveName, version, flavor) lists of all of the troves on
the server built from sourceVersion. |
source code
|
|
|
|
getPackageCreatorTroves(self,
reposName)
Returns ((name, version, flavor), pkgData) tuples for all troves
in the repository which have packageCreatorData troveinfo
available. |
source code
|
|
|
|
| commitChangeSetFile(self,
fName,
mirror=False,
callback=None,
hidden=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getNewTroveInfo(self,
host,
mark,
infoTypes=[],
labels=[],
thaw=True) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list of Stream objects or None
|
getTroveInfo(self,
infoType,
troveList)
Returns a list of trove infoType streams for a list of (name,
version, flavor) troves. |
source code
|
|
|
dict
|
findTroves(self,
labelPath,
troves,
defaultFlavor=None,
acrossLabels=False,
acrossFlavors=False,
affinityDatabase=None,
allowMissing=False,
getLeaves=True,
bestFlavor=True,
troveTypes=1,
exactFlavors=False,
requireLatest=False)
PUBLIC API |
source code
|
|
|
|
findTrove(self,
labelPath,
(name, versionStr, flavor),
defaultFlavor=None,
acrossLabels=False,
acrossFlavors=False,
affinityDatabase=None,
getLeaves=True,
bestFlavor=True,
troveTypes=1,
exactFlavors=False)
PUBLIC API |
source code
|
|
|
|
|
|
|
| _commit(self,
chgSet,
fName,
callback=None,
mirror=False,
hidden=False) |
source code
|
|
|
Inherited from xmlshims.NetworkConvertors:
freezeVersion,
fromBranch,
fromDepSet,
fromEntitlement,
fromFile,
fromFileAsStream,
fromFileId,
fromFlavor,
fromLabel,
fromPath,
fromPathId,
fromTroveTup,
fromVersion,
thawVersion,
toBranch,
toDepSet,
toEntitlement,
toFile,
toFileAsStream,
toFileId,
toFlavor,
toLabel,
toPath,
toPathId,
toTroveTup,
toVersion
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
Inherited from repository.AbstractRepository:
hasTroveByName
Inherited from repository.IdealRepository:
createBranch,
queryMerge
Inherited from repository.AbstractTroveDatabase:
iterAllTroveNames
Inherited from trovesource.SearchableTroveSource:
filterByFlavor,
filterByFlavors,
filterTrovesByPreferences,
isSearchAsDatabase,
searchAsDatabase,
searchAsRepository,
searchLeavesOnly,
searchWithFlavor,
trovesByName
Inherited from trovesource.SearchableTroveSource (private):
_addFilteredFlavorsToResults,
_calculateFlavorScores,
_filterByFlavorQuery,
_filterByPreferences,
_filterByVersionQuery,
_filterResultsByFlavor,
_getFilterOptions,
_getTrovesByType,
_getTrovesByTypeTuples,
_splitResultByBranch,
_toQueryDict
Inherited from trovesource.AbstractTroveSource:
getDepsForTroveList,
getFlavorPreferenceList,
getLabelsForTroveName,
getPathHashesForTroveList,
mergeDepSuggestions,
requiresLabelPath,
searchableByType,
setFlavorPreferenceList,
setFlavorPreferencesByFlavor,
walkTroveSet
|