eric7.Plugins.VcsPlugins.vcsPySvn.SvnDialogMixin

Module implementing a dialog mixin class providing common callback methods for the pysvn client.

Global Attributes

None

Classes

SvnDialogMixin Class implementing a dialog mixin providing common callback methods for the pysvn client.

Functions

None


SvnDialogMixin

Class implementing a dialog mixin providing common callback methods for the pysvn client.

Derived from

None

Class Attributes

None

Class Methods

None

Methods

SvnDialogMixin Constructor
_cancel Protected method to request a cancellation of the current action.
_clientCancelCallback Protected method called by the client to check for cancellation.
_clientLogCallback Protected method called by the client to request a log message.
_clientLoginCallback Protected method called by the client to get login information.
_clientSslServerTrustPromptCallback Protected method called by the client to request acceptance for a ssl server certificate.
_reset Protected method to reset the internal state of the dialog.

Static Methods

None

SvnDialogMixin (Constructor)

SvnDialogMixin(log="")

Constructor

log (str)
optional log message

SvnDialogMixin._cancel

_cancel()

Protected method to request a cancellation of the current action.

SvnDialogMixin._clientCancelCallback

_clientCancelCallback()

Protected method called by the client to check for cancellation.

Return:
flag indicating a cancellation
Return Type:
bool

SvnDialogMixin._clientLogCallback

_clientLogCallback()

Protected method called by the client to request a log message.

Return:
a flag indicating success and the log message
Return Type:
str

SvnDialogMixin._clientLoginCallback

_clientLoginCallback(realm, username, may_save)

Protected method called by the client to get login information.

realm (str)
name of the realm of the requested credentials
username (str)
username as supplied by subversion
may_save (bool)
flag indicating, that subversion is willing to save the answers returned
Return:
tuple of four values (retcode, username, password, save). Retcode should be True, if username and password should be used by subversion, username and password contain the relevant data as strings and save is a flag indicating, that username and password should be saved.
Return Type:
tuple of (bool, str, str, bool)

SvnDialogMixin._clientSslServerTrustPromptCallback

_clientSslServerTrustPromptCallback(trust_dict)

Protected method called by the client to request acceptance for a ssl server certificate.

trust_dict (dict)
dictionary containing the trust data
Return:
tuple of three values (retcode, acceptedFailures, save). Retcode should be True, if the certificate should be accepted, acceptedFailures should indicate the accepted certificate failures and save should be True, if subversion should save the certificate.
Return Type:
tuple of (bool, list of str, bool)

SvnDialogMixin._reset

_reset()

Protected method to reset the internal state of the dialog.

Up