Package conary :: Module callbacks :: Class ChangesetCallback
[hide private]
[frames] | no frames]

Class ChangesetCallback

source code

object --+    
         |    
  Callback --+
             |
            ChangesetCallback
Known Subclasses:
UpdateCallback, CookCallback, conaryclient.callbacks.ChangesetCallback, CloneCallback, conaryclient.mirror.ChangesetCallback

Instance Methods [hide private]
 
preparingChangeSet(self)
Called before an update begins and before it looks for the requested troves.
source code
 
requestingChangeSet(self)
Called right before requesting a changeset from a repository.
source code
 
sendingChangeset(self, sent, total) source code
 
setRate(self, rate) source code
 
downloadingChangeSet(self, got, need)
Called when downloading a changeset.
source code
 
requestingFileContents(self)
Called right before requesting file contents from a repository.
source code
 
downloadingFileContents(self, got, need)
Called when downloading file contents.
source code
 
setChangesetHunk(self, hunk, hunkCount)
Called when creating changesets, such as when downloading changesets.
source code
 
checkAbort(self) source code
 
done(self) source code
 
error(self, msg, *args, **kwargs)
Error handling callback
source code
 
warning(self, msg, *args, **kwargs)
Warning handling callback
source code
 
missingFiles(self, missingFiles)
This callback gets called if missing files were detected in the upstream server
source code
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from Callback: __getattribute__, cancelOperation

Inherited from Callback (private): _exceptionOccured

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

preparingChangeSet(self)

source code 
Called before an update begins and before it looks for the requested troves.
Returns:
None

requestingChangeSet(self)

source code 
Called right before requesting a changeset from a repository.
Returns:
None

downloadingChangeSet(self, got, need)

source code 
Called when downloading a changeset.
Parameters:
  • got (integer) - number of bytes received so far.
  • need (integer) - number of bytes total to be retrieved.
Returns:
None

requestingFileContents(self)

source code 
Called right before requesting file contents from a repository.
Returns:
None

downloadingFileContents(self, got, need)

source code 
Called when downloading file contents.
Parameters:
  • got (integer) - number of bytes received so far.
  • need (integer) - number of bytes total to be retrieved
Returns:
None

setChangesetHunk(self, hunk, hunkCount)

source code 
Called when creating changesets, such as when downloading changesets.
Parameters:
  • hunk (integer) - the number of the changeset being created (starts at 1)
  • hunkCount (integer) - total number of changesets to be created.
Returns:
None

error(self, msg, *args, **kwargs)

source code 
Error handling callback
Parameters:
  • msg (str) - A message to display
  • exc_text (str) - Traceback text that should be printed verbatim

warning(self, msg, *args, **kwargs)

source code 
Warning handling callback
Parameters:
  • msg (str) - A message to display
  • exc_text (str) - Traceback text that should be printed verbatim

missingFiles(self, missingFiles)

source code 
This callback gets called if missing files were detected in the upstream server
Parameters:
  • missingFiles - a list of tuples: (troveName, troveVersion, troveFlavor, pathId, path, fileId, version)

__init__(self)
(Constructor)

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