Documentation/Source/eric5.Plugins.VcsPlugins.vcsPySvn.SvnStatusMonitorThread.html

Sun, 04 Mar 2012 13:04:47 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 04 Mar 2012 13:04:47 +0100
changeset 1689
2d007a789078
parent 1229
a8207dc73672
child 2367
78f6c8193d37
permissions
-rw-r--r--

Updated source docu.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric5.Plugins.VcsPlugins.vcsPySvn.SvnStatusMonitorThread</title>
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric5.Plugins.VcsPlugins.vcsPySvn.SvnStatusMonitorThread</h1>
<p>
Module implementing the VCS status monitor thread class for Subversion.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#SvnStatusMonitorThread">SvnStatusMonitorThread</a></td>
<td>Class implementing the VCS status monitor thread class for Subversion.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="SvnStatusMonitorThread" ID="SvnStatusMonitorThread"></a>
<h2>SvnStatusMonitorThread</h2>
<p>
    Class implementing the VCS status monitor thread class for Subversion.
</p>
<h3>Derived from</h3>
VcsStatusMonitorThread
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#SvnStatusMonitorThread.__init__">SvnStatusMonitorThread</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#SvnStatusMonitorThread.__clientLoginCallback">__clientLoginCallback</a></td>
<td>Private method called by the client to get login information.</td>
</tr><tr>
<td><a href="#SvnStatusMonitorThread.__clientSslServerTrustPromptCallback">__clientSslServerTrustPromptCallback</a></td>
<td>Private method called by the client to request acceptance for a ssl server certificate.</td>
</tr><tr>
<td><a href="#SvnStatusMonitorThread._performMonitor">_performMonitor</a></td>
<td>Protected method implementing the monitoring action.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="SvnStatusMonitorThread.__init__" ID="SvnStatusMonitorThread.__init__"></a>
<h4>SvnStatusMonitorThread (Constructor)</h4>
<b>SvnStatusMonitorThread</b>(<i>interval, project, vcs, parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>interval</i></dt>
<dd>
new interval in seconds (integer)
</dd><dt><i>project</i></dt>
<dd>
reference to the project object (Project)
</dd><dt><i>vcs</i></dt>
<dd>
reference to the version control object
</dd><dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
</dd>
</dl><a NAME="SvnStatusMonitorThread.__clientLoginCallback" ID="SvnStatusMonitorThread.__clientLoginCallback"></a>
<h4>SvnStatusMonitorThread.__clientLoginCallback</h4>
<b>__clientLoginCallback</b>(<i>realm, username, may_save</i>)
<p>
        Private method called by the client to get login information.
</p><dl>
<dt><i>realm</i></dt>
<dd>
name of the realm of the requested credentials (string)
</dd><dt><i>username</i></dt>
<dd>
username as supplied by subversion (string)
</dd><dt><i>may_save</i></dt>
<dd>
flag indicating, that subversion is willing to save
            the answers returned (boolean)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
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. Always returns (False, "", "", False).
</dd>
</dl><a NAME="SvnStatusMonitorThread.__clientSslServerTrustPromptCallback" ID="SvnStatusMonitorThread.__clientSslServerTrustPromptCallback"></a>
<h4>SvnStatusMonitorThread.__clientSslServerTrustPromptCallback</h4>
<b>__clientSslServerTrustPromptCallback</b>(<i>trust_dict</i>)
<p>
        Private method called by the client to request acceptance for a
        ssl server certificate.
</p><dl>
<dt><i>trust_dict</i></dt>
<dd>
dictionary containing the trust data
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
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.
            Always returns (False, 0, False).
</dd>
</dl><a NAME="SvnStatusMonitorThread._performMonitor" ID="SvnStatusMonitorThread._performMonitor"></a>
<h4>SvnStatusMonitorThread._performMonitor</h4>
<b>_performMonitor</b>(<i></i>)
<p>
        Protected method implementing the monitoring action.
</p><p>
        This method populates the statusList member variable
        with a list of strings giving the status in the first column and the
        path relative to the project directory starting with the third column.
        The allowed status flags are:
        <ul>
            <li>"A" path was added but not yet comitted</li>
            <li>"M" path has local changes</li>
            <li>"O" path was removed</li>
            <li>"R" path was deleted and then re-added</li>
            <li>"U" path needs an update</li>
            <li>"Z" path contains a conflict</li>
            <li>" " path is back at normal</li>
        </ul>
</p><dl>
<dt>Returns:</dt>
<dd>
tuple of flag indicating successful operation (boolean) and
            a status message in case of non successful operation (string)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial