TestUser Class Reference

List of all members.


Detailed Description

Storage class for a test user.

Author:
Enrico Hartung <enrico@iptel.org>
License:
GPL

Definition at line 108 of file TestUser.py.


Public Member Functions

def __init__
def set
 Generic setter for the protected attributes of an object of this class.
def get
 Generic getter for the protected attributes of an object of this class.
def add
 Generic adder for the protected attributes of an object of this class.
def setAvp
 Set attribute value pair.
def getAvp
 Return tuple with type, name, and value of avp.
def __str__
 Return string representation of this object.

Private Attributes

 _mode
 _prefix
 _uuid
 _username
 _authname
 _domain
 _realm
 _password
 _fileGroups
 _avps

Static Private Attributes

string _mode = ""
string _prefix = ""
string _uuid = ""
list _username = []
string _authname = ""
string _domain = ""
string _realm = ""
string _password = ""
dictionary _avps = {}
list _fileGroups = []

Member Function Documentation

def __init__ (   self  ) 

Definition at line 141 of file TestUser.py.

def set (   self,
  name,
  value 
)

Generic setter for the protected attributes of an object of this class.

Parameters:
name name of attribute without '_' (string)
value value the attribute should be set to (void)

Definition at line 161 of file TestUser.py.

def get (   self,
  name 
)

Generic getter for the protected attributes of an object of this class.

Parameters:
name name of attribute without '_' (string)
Returns:
value the attribute is set to (void)

Definition at line 176 of file TestUser.py.

def add (   self,
  name,
  value 
)

Generic adder for the protected attributes of an object of this class.

Parameters:
name name of attribute without '_' (string)
value value that should be added (list)

Definition at line 187 of file TestUser.py.

def setAvp (   self,
  avpName,
  avpValue 
)

Set attribute value pair.

Generic storage attribute for additional attributes.

Parameters:
avpName avp name (string)
avpValue avp value (string)

Definition at line 204 of file TestUser.py.

def getAvp (   self,
  avpName 
)

Return tuple with type, name, and value of avp.

Parameters:
avpName (string)
Returns:
avp value (None if avp does not exist)

Definition at line 215 of file TestUser.py.

def __str__ (   self  ) 

Return string representation of this object.

Returns:
: formated string (string)

Definition at line 225 of file TestUser.py.


Member Data Documentation

string _mode = "" [static, private]

Definition at line 111 of file TestUser.py.

string _prefix = "" [static, private]

Definition at line 114 of file TestUser.py.

string _uuid = "" [static, private]

Definition at line 117 of file TestUser.py.

list _username = [] [static, private]

Definition at line 120 of file TestUser.py.

string _authname = "" [static, private]

Definition at line 123 of file TestUser.py.

string _domain = "" [static, private]

Definition at line 126 of file TestUser.py.

string _realm = "" [static, private]

Definition at line 129 of file TestUser.py.

string _password = "" [static, private]

Definition at line 132 of file TestUser.py.

dictionary _avps = {} [static, private]

Definition at line 135 of file TestUser.py.

list _fileGroups = [] [static, private]

Definition at line 138 of file TestUser.py.

_mode [private]

Definition at line 142 of file TestUser.py.

_prefix [private]

Definition at line 143 of file TestUser.py.

_uuid [private]

Definition at line 144 of file TestUser.py.

_username [private]

Definition at line 145 of file TestUser.py.

_authname [private]

Definition at line 146 of file TestUser.py.

_domain [private]

Definition at line 147 of file TestUser.py.

_realm [private]

Definition at line 148 of file TestUser.py.

_password [private]

Definition at line 149 of file TestUser.py.

_fileGroups [private]

Definition at line 150 of file TestUser.py.

_avps [private]

Definition at line 151 of file TestUser.py.


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 17:28:33 2008 for TestEnv by  doxygen 1.5.5