Package Gnumed :: Package wxpython :: Package gui :: Module gmContacts :: Class cContactsPanel |
[frames] | no frames]

# Class cContactsPanel

source code

    wx.wx.Panel --+
                  |
                 cContactsPanel

Instance Methods
__init__(self, parent, id) | source code
getLastSelected(self) | source code
setLastSelected(self, obj) | source code
doPaste(self) | source code
get_address_values(self) from the street urb, postcode field, return number, street, urb, postcode list | source code
get_org_values(self) returns a dictionary of the widget controls contents | source code
add_org(self, org, showPersons=True) display an org in the list control, and show any dependent persons if necessary. | source code
update_org(self, org) displays an org without reloading it. | source code
getOrgKeyData(self, org) Converts org to data items for displaying in list control. | source code
load_all_orgs(self) clears the list control, displays the example data, and then the real data, from _helper.findAllOrganizations() | source code
loadCurrentValues(self, org) parse an org into the edit widgets of gmContact | source code
setCurrent(self, org) | source code
getCurrent(self) | source code
getOrgHelper(self) | source code
newOrg(self, parent=None) | source code
newForm(self) | source code
clearForm(self) | source code
checkEnabledFields(self) configure the edit widgets according to the type of org/person object | source code
saveOrg(self) transfer the widget's edit controls to a org/person object, and call its save() function, then reload all the orgs, and their persons, from the cache. | source code
isPersonCurrent(self) | source code
newPerson(self) | source code

Method Details

### update_org(self, org) | source code
displays an org without reloading it. It is added to the end of a display list, currently, without attention to it's position in a contact tree. Use load_all_orgs() is preferable, as it uses org's cached in the orgHelper, and person's cached in self._tmpPerson.

### getOrgKeyData(self, org) | source code
Converts org to data items for displaying in list control. Rules are specific , and defined in original example gmContacts data

### saveOrg(self) | source code
transfer the widget's edit controls to a org/person object, and call its save() function, then reload all the orgs, and their persons, from the cache. The save() function will update the cache if this is a newly created org/person.