![]() |
Python_2
1.0
|
Class for aggregating all personal data in a single object. More...
Public Member Functions | |
def | __init__ (self, listOfPhones=None, addr='') |
Constructor from a phone list and an address. More... | |
def | getlPhone (self) |
Returns the phone list of this contact. More... | |
def | getAddress (self) |
Returns the address of this contact. More... | |
def | setAddress (self, addr) |
Sets the address of this contact. More... | |
def | setlPhone (self, l) |
Appends a phone list to this contact phone list. More... | |
def | __eq__ (self, other) |
Compares two personal data. More... | |
def | __repr__ (self) |
Used to print a human readable presentation of an object. More... | |
def | __str__ (self) |
Used to print a human readable presentation of an object. More... | |
Public Attributes | |
lPhone | |
Contact phone list. More... | |
address | |
Contact address. More... | |
Class for aggregating all personal data in a single object.
def _01d_Agenda.personalData.__init__ | ( | self, | |
listOfPhones = None , |
|||
addr = '' |
|||
) |
Constructor from a phone list and an address.
listOfPhones | phone list. |
addr | address. |
def _01d_Agenda.personalData.__eq__ | ( | self, | |
other | |||
) |
Compares two personal data.
References _01d_Agenda.personalData.address, and _01d_Agenda.personalData.lPhone.
def _01d_Agenda.personalData.__repr__ | ( | self | ) |
Used to print a human readable presentation of an object.
In this case, it prints the contact name and his personal data.
References _01d_Agenda.personalData.address, and _01d_Agenda.personalData.lPhone.
def _01d_Agenda.personalData.__str__ | ( | self | ) |
Used to print a human readable presentation of an object.
In this case, it prints the contact name and his personal data.
References _01d_Agenda.personalData.address, and _01d_Agenda.personalData.lPhone.
def _01d_Agenda.personalData.getAddress | ( | self | ) |
Returns the address of this contact.
References _01d_Agenda.personalData.address.
def _01d_Agenda.personalData.getlPhone | ( | self | ) |
Returns the phone list of this contact.
References _01d_Agenda.personalData.lPhone.
def _01d_Agenda.personalData.setAddress | ( | self, | |
addr | |||
) |
Sets the address of this contact.
addr | the contact address. |
def _01d_Agenda.personalData.setlPhone | ( | self, | |
l | |||
) |
Appends a phone list to this contact phone list.
l | a phone list. |
References _01d_Agenda.personalData.lPhone.
_01d_Agenda.personalData.address |
Contact address.
Referenced by _01d_Agenda.personalData.__eq__(), _01d_Agenda.personalData.__repr__(), _01d_Agenda.personalData.__str__(), and _01d_Agenda.personalData.getAddress().
_01d_Agenda.personalData.lPhone |
Contact phone list.
Referenced by _01d_Agenda.personalData.__eq__(), _01d_Agenda.personalData.__repr__(), _01d_Agenda.personalData.__str__(), _01d_Agenda.personalData.getlPhone(), and _01d_Agenda.personalData.setlPhone().