Package conary :: Package repository :: Package netrepos :: Module netserver :: Class NetworkRepositoryServer
[hide private]
[frames] | no frames]

Class NetworkRepositoryServer

source code

                object --+    
                         |    
xmlshims.NetworkConvertors --+
                             |
                            NetworkRepositoryServer
Known Subclasses:
shimclient.NetworkRepositoryServer, server.server.ResetableNetworkRepositoryServer

Instance Methods [hide private]
 
__init__(self, cfg, basicUrl, db=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__del__(self) source code
 
open(self, connect=True) source code
 
reopen(self) source code
 
callWrapper(self, protocol, port, methodname, authToken, orderedArgs, kwArgs, remoteIp=None, rawUrl=None, isSecure=False)
Returns a tuple of (Exception, result).
source code
 
urlBase(self, urlName=True) source code
 
addUser(self, authToken, clientVersion, user, newPassword) source code
 
addUserByMD5(self, authToken, clientVersion, user, salt, newPassword) source code
 
addAccessGroup(self, *args, **kw) source code
 
addRole(self, authToken, clientVersion, role) source code
 
deleteAccessGroup(self, *args, **kw) source code
 
deleteRole(self, authToken, clientVersion, role) source code
 
listAccessGroups(self, *args, **kw) source code
 
listRoles(self, authToken, clientVersion) source code
 
updateAccessGroupMembers(self, *args, **kw) source code
 
addRoleMember(self, authToken, clientVersion, role, username) source code
 
getRoleMembers(self, authToken, clientVersion, role) source code
 
updateRoleMembers(self, authToken, clientVersion, role, members) source code
 
deleteUserByName(self, authToken, clientVersion, user) source code
 
setUserGroupCanMirror(self, *args, **kw) source code
 
setRoleCanMirror(self, authToken, clientVersion, role, canMirror) source code
 
setUserGroupIsAdmin(self, *args, **kw) source code
 
setRoleIsAdmin(self, authToken, clientVersion, role, admin) source code
 
listAcls(self, authToken, clientVersion, role) source code
 
addAcl(self, authToken, clientVersion, role, trovePattern, label, write=False, remove=False) source code
 
deleteAcl(self, authToken, clientVersion, role, trovePattern, label) source code
 
editAcl(self, authToken, clientVersion, role, oldTrovePattern, oldLabel, trovePattern, label, write=False, canRemove=False) source code
 
changePassword(self, authToken, clientVersion, user, newPassword) source code
 
getUserGroups(self, *args, **kw) source code
 
getRoles(self, authToken, clientVersion) source code
 
addEntitlement(self, *args, **kw) source code
 
addEntitlementKeys(self, authToken, clientVersion, entClass, entKeys) source code
 
deleteEntitlement(self, authToken, clientVersion, *args) source code
 
deleteEntitlementKeys(self, authToken, clientVersion, entClass, entKeys) source code
 
addEntitlementGroup(self, *args, **kw) source code
 
addEntitlementClass(self, authToken, clientVersion, entClass, role) source code
 
deleteEntitlementGroup(self, *args, **kw) source code
 
deleteEntitlementClass(self, authToken, clientVersion, entClass) source code
 
addEntitlementOwnerAcl(self, *args, **kw) source code
 
addEntitlementClassOwner(self, authToken, clientVersion, role, entClass) source code
 
deleteEntitlementOwnerAcl(self, *args, **kw) source code
 
deleteEntitlementClassOwner(self, authToken, clientVersion, role, entClass) source code
 
listEntitlementKeys(self, authToken, clientVersion, entClass) source code
 
listEntitlementGroups(self, *args, **kw) source code
 
listEntitlementClasses(self, authToken, clientVersion) source code
 
getEntitlementClassAccessGroup(self, *args, **kw) source code
 
getEntitlementClassesRoles(self, authToken, clientVersion, classList) source code
 
setEntitlementClassAccessGroup(self, *args, **kw) source code
 
setEntitlementClassesRoles(self, authToken, clientVersion, classInfo) source code
 
addTroveAccess(self, authToken, clientVersion, role, troveList) source code
 
deleteTroveAccess(self, authToken, clientVersion, role, troveList) source code
 
listTroveAccess(self, authToken, clientVersion, role) source code
 
updateMetadata(self, authToken, clientVersion, troveName, branch, shortDesc, longDesc, urls, categories, licenses, source, language) source code
 
getMetadata(self, authToken, clientVersion, troveList, language) source code
 
_setupFlavorFilter(self, cu, flavorSet) source code
 
_setupTroveFilter(self, cu, troveSpecs, flavorIndices) source code
 
_latestType(self, queryType) source code
 
_getTroveList(self, authToken, clientVersion, troveSpecs, versionType=0, latestFilter=1, flavorFilter=2, withFlavors=False, troveTypes=1) source code
 
troveNames(self, authToken, clientVersion, labelStr, troveTypes=0) source code
 
getTroveVersionList(self, authToken, clientVersion, troveSpecs, troveTypes=1) source code
 
getTroveVersionFlavors(self, authToken, clientVersion, troveSpecs, bestFlavor, troveTypes=1) source code
 
getAllTroveLeaves(self, authToken, clientVersion, troveSpecs, troveTypes=1) source code
 
_getTroveVerInfoByVer(self, authToken, clientVersion, troveSpecs, bestFlavor, versionType, latestFilter, troveTypes=1) source code
 
getTroveVersionsByBranch(self, authToken, clientVersion, troveSpecs, bestFlavor, troveTypes=1) source code
 
getTroveLeavesByBranch(self, authToken, clientVersion, troveSpecs, bestFlavor, troveTypes=1) source code
 
getTroveLeavesByLabel(self, authToken, clientVersion, troveSpecs, bestFlavor, troveTypes=1) source code
 
getTroveVersionsByLabel(self, authToken, clientVersion, troveNameList, bestFlavor, troveTypes=1) source code
 
getFileContents(self, authToken, clientVersion, fileList, authCheckOnly=False) source code
 
getTroveLatestVersion(self, authToken, clientVersion, pkgName, branchStr, troveTypes=1) source code
 
_checkTrovePermission(self, authToken, n, v, f) source code
 
_checkPermissions(self, authToken, chgSetList) source code
 
_cvtJobEntry(self, authToken, jobEntry) source code
 
_getChangeSetObj(self, authToken, chgSetList, recurse, withFiles, withFileContents, excludeAutoSource) source code
 
_createChangeSet(self, path, jobList, **kwargs) source code
 
getChangeSet(self, authToken, clientVersion, chgSetList, recurse, withFiles, withFileContents, excludeAutoSource, changeSetVersion=None, mirrorMode=False, infoOnly=False) source code
 
getChangeSetFingerprints(self, authToken, clientVersion, chgSetList, recurse, withFiles, withFileContents, excludeAutoSource, mirrorMode=False) source code
 
getDepSuggestions(self, authToken, clientVersion, label, requiresList, leavesOnly=False) source code
 
getDepSuggestionsByTroves(self, authToken, clientVersion, requiresList, troveList) source code
 
commitCheck(self, authToken, clientVersion, troveVersionList) source code
 
_checkCommitPermissions(self, authToken, verList, mirror, hidden) source code
 
prepareChangeSet(self, authToken, clientVersion, jobList=None, mirror=False) source code
 
presentHiddenTroves(self, authToken, clientVersion) source code
 
commitChangeSet(self, authToken, clientVersion, url, mirror=False, hidden=False) source code
 
_commitChangeSet(self, authToken, cs, mirror=False, hidden=False) source code
 
_getFileStreams(self, authToken, fileIdGen) source code
 
getFileVersions(self, authToken, clientVersion, fileList) source code
 
getFileVersion(self, authToken, clientVersion, pathId, fileId, withContents=0) source code
 
getPackageBranchPathIds(self, authToken, clientVersion, sourceName, branch, dirnames=[], fileIds=None) source code
 
_lookupTroves(self, authToken, troveList, hidden=False) source code
 
hasTroves(self, authToken, clientVersion, troveList, hidden=False) source code
 
getTrovesByPaths(self, authToken, clientVersion, pathList, label, all=False) source code
 
getCollectionMembers(self, authToken, clientVersion, troveName, branch) source code
 
getTrovesBySource(self, authToken, clientVersion, sourceName, sourceVersion) source code
 
getPackageCreatorTroves(self, authToken, clientVersion, serverName) source code
 
addMetadataItems(self, authToken, clientVersion, itemList) source code
 
addDigitalSignature(self, authToken, clientVersion, name, version, flavor, encSig) source code
 
addNewAsciiPGPKey(self, authToken, label, user, keyData) source code
 
addNewPGPKey(self, authToken, label, user, encKeyData) source code
 
changePGPKeyOwner(self, authToken, label, user, key) source code
 
getAsciiOpenPGPKey(self, authToken, label, keyId) source code
 
listUsersMainKeys(self, authToken, label, user=None) source code
 
listSubkeys(self, authToken, label, fingerprint) source code
 
getOpenPGPKeyUserIds(self, authToken, label, keyId) source code
 
getConaryUrl(self, authtoken, clientVersion, revStr, flavorStr)
Returns a url to a downloadable changeset for the conary client that is guaranteed to work with this server's version.
source code
 
getMirrorMark(self, authToken, clientVersion, host) source code
 
setMirrorMark(self, authToken, clientVersion, host, mark) source code
 
getNewSigList(self, authToken, clientVersion, mark) source code
 
getNewTroveInfo(self, authToken, clientVersion, mark, infoTypes, labels) source code
 
setTroveInfo(self, authToken, clientVersion, infoList) source code
 
_setTroveInfo(self, authToken, clientVersion, infoList, requireMirror=False) source code
 
getTroveSigs(self, authToken, clientVersion, infoList) source code
 
setTroveSigs(self, authToken, clientVersion, infoList) source code
 
getNewPGPKeys(self, authToken, clientVersion, mark) source code
 
addPGPKeyList(self, authToken, clientVersion, keyList) source code
 
getNewTroveList(self, authToken, clientVersion, mark) source code
 
getTroveInfo(self, authToken, clientVersion, infoType, troveList)
we return tuples (present, data) to aid netclient in making its decoding decisions present values are: -2 = insufficient permission -1 = trovemissing 0 = valuemissing 1 = valueattached
source code
 
getTroveReferences(self, authToken, clientVersion, troveInfoList)
troveInfoList is a list of (name, version, flavor) tuples.
source code
 
getTroveDescendants(self, authToken, clientVersion, troveList)
troveList is a list of (name, branch, flavor) tuples.
source code
 
checkVersion(self, authToken, clientVersion)
Check the repository's protocol version to see that it's compatible with the client
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__

Class Variables [hide private]
  _GET_TROVE_ALL_VERSIONS = 1
  _GET_TROVE_VERY_LATEST = 2
  _GET_TROVE_NO_FLAVOR = 1
  _GET_TROVE_ALL_FLAVORS = 2
  _GET_TROVE_BEST_FLAVOR = 3
  _GET_TROVE_ALLOWED_FLAVOR = 4
  _GTL_VERSION_TYPE_NONE = 0
  _GTL_VERSION_TYPE_LABEL = 1
  _GTL_VERSION_TYPE_VERSION = 2
  _GTL_VERSION_TYPE_BRANCH = 3
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cfg, basicUrl, db=None)
(Constructor)

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

callWrapper(self, protocol, port, methodname, a