Package flumotion :: Package admin :: Module connections
[hide private]

Module connections

source code

recent connections


Version: $Rev$

Classes [hide private]
  ConnectionInfo
I wrap the information contained in a single connection file entry.
  RecentConnection
I am an object representing a recent connection.
Functions [hide private]
 
_getRecentFilenames() source code
bool
hasRecentConnections()
Returns if we have at least one recent connection
source code
 
_parseConnection(element) source code
 
_parseSingleConnectionFile(filename) source code
 
_parseMultipleConnectionsFile(filename) source code
list of RecentConnection
getRecentConnections()
Fetches a list of recently used connections
source code
list of ConnectionInfo
getDefaultConnections()
Fetches a list of default connections.
source code
 
updateFromConnectionList(info, connections, match_glob=False)
Updates the info object with the username and password taken from the list of connections.
source code
a PBConnectionInfo
parsePBConnectionInfoRecent(managerString, use_ssl=True, defaultPort=7531)
The same as flumotion.common.connection.parsePBConnectionInfo, but fills in missing information from the recent connections cache or from the default user and password definitions file if possible.
source code
Variables [hide private]
  __package__ = 'flumotion.admin'
Function Details [hide private]

hasRecentConnections()

source code 

Returns if we have at least one recent connection

Returns: bool
if we have a recent connection

getRecentConnections()

source code 

Fetches a list of recently used connections

Returns: list of RecentConnection
recently used connections

getDefaultConnections()

source code 

Fetches a list of default connections.

Returns: list of ConnectionInfo
default connections

updateFromConnectionList(info, connections, match_glob=False)

source code 

Updates the info object with the username and password taken from the list of connections.

Parameters:
  • info (PBConnectionInfo) - connection info
  • connections - recent or default connections
  • match_glob - if values of host, port, etc. to be matched between info and the recent or default connections should be treated as shell globs
Returns:
None

parsePBConnectionInfoRecent(managerString, use_ssl=True, defaultPort=7531)

source code 

The same as flumotion.common.connection.parsePBConnectionInfo, but fills in missing information from the recent connections cache or from the default user and password definitions file if possible.

Parameters:
  • managerString (string) - manager string we should connect to
  • use_ssl (bool) - True if we should use ssl
  • defaultPort (int) - default port to use
Returns: a PBConnectionInfo
connection info