Home | Trees | Indices | Help |
|
---|
|
object --+ | Connection
A Perforce connection that allows asynchronous running of commands.
Use instances of this class to run commands on the Perforce server asynchronously, returning twisted Deferred objects.
Only one command executes using this connection at any one time, however, many connections may be simultaneously executing on separate threads in the Twisted thread pool.See Also: connectPerforce
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
str
|
server The Perforce server protocol version used by the connection. |
boolean
|
nocase Flag indicating whether the server is case insensitive. |
str (may be set with unicode )
|
charset The default charset used for Perforce unicode files. |
str or unicode
|
client The default Perforce client to use when running client commands. |
str or unicode
|
cwd The default working directory for running client commands. |
str (may be set with unicode )
|
host The hostname of the local machine as identified by Perforce. |
str or unicode
|
language The language to use for Perforce messages. |
str
|
os The operating system as identified by Perforce. |
str or unicode
|
password The default password to use to authenticate the Perforce user. |
str (may be set with unicode )
|
port The address and port of the connected Perforce server. |
str or unicode
|
user The default Perforce user name to use for running commands. |
Inherited from |
Method Details |
Note: Instances of this class should be created by calling the connectPerforce function. See Also: connectPerforce |
Note: Subsequent calls to run will fail with ConnectionDropped. |
Run a Perforce command asynchronously. Connection parameters may be overridden on a per-command basis by specifying them as named parameters: ie. charset, client, cwd, language, user and password.
Warning: This method should only ever be called from the Twisted main thread. |
Property Details |
serverThe Perforce server protocol version used by the connection.
Note: Can only be queried after running a command on this connection. See Also: perforce.connection.Connection.server for a list of the values and their corresponding Perforce server versions. |
nocaseFlag indicating whether the server is case insensitive.
Note: Can only be queried after running a command on this connection. See Also: server |
charsetThe default charset used for Perforce unicode files. This value may be overridden on a per-command basis by passing a value to the named 'charset' argument of run(). For example:| c.run('sync', charset='utf8')
|
clientThe default Perforce client to use when running client commands. This value may be overridden on a per-command basis by passing the new client value to the named 'client' argument of run(). For example:| c.run('sync', client='my-client')
|
cwdThe default working directory for running client commands. This value may be overridden on a per-command basis by passing the new working directory to the the named 'cwd' argument of run(). For example:| c.run('sync', 'foo.h', | cwd='/path/to/include')
|
hostThe hostname of the local machine as identified by Perforce.
See Also: perforce.connection.Connection.host |
languageThe language to use for Perforce messages.
See Also: perforce.connection.Connection.language |
osThe operating system as identified by Perforce.
See Also: perforce.connection.Connection.os |
passwordThe default password to use to authenticate the Perforce user. This value may be overridden on a per-command basis by passing the new password to the named 'password' parameter of run(). The ticket identifier (obtained from 'p4 login') may also be passed as the password for servers that require ticket-based authentication. For example:| c.run('user', '-d', 'joe', | user='p4admin', | password='thePassword')
See Also: perforce.connection.Connection.password |
portThe address and port of the connected Perforce server.
See Also: perforce.connection.Connection.port |
userThe default Perforce user name to use for running commands. This value may be overridden on a per-command basis by passing the new user name to the named 'user' argument of run(). For example:| c.run('login', user='joe', | input='thePassword')
See Also: perforce.connection.Connection.user |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Sun Aug 05 12:30:13 2007 | http://epydoc.sourceforge.net |