Copyright:
2009-2012 (c) Sahana Software Foundation
License:
MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
|
|
|
|
|
|
|
|
pr_contacts(r,
**attr)
Custom Method to provide the details for the Person's Contacts Tab:
- provides a single view on:
Addresses (pr_address)
Contacts (pr_contact)
Emergency Contacts |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
pr_define_role(pe_id,
role=None,
role_type=None,
entity_type=None,
sub_type=None)
Back-end method to define a new affiliates-role for a person entity |
source code
|
|
|
|
|
|
|
|
|
pr_get_role_paths(pe_id,
roles=None,
role_types=None)
Get the ancestor paths of the ancestor OUs this person entity is
affiliated with, sorted by roles. |
source code
|
|
|
pr_get_role_branches(pe_id,
roles=None,
role_types=None,
entity_type=None)
Get all descendants of the immediate ancestors of the entity within
these roles/role types |
source code
|
|
|
|
|
pr_get_ancestors(pe_id)
Find all ancestor entities of a person entity in the OU hierarchy
(performs a path lookup where paths are available, otherwise rebuilds
paths). |
source code
|
|
|
|
|
|
|
|
|
pr_get_descendants(pe_ids,
skip=[],
entity_type=None,
ids=True)
Find descendant entities of a person entity in the OU hierarchy
(performs a real search, not a path lookup). |
source code
|
|
|
pr_rebuild_path(pe_id,
clear=False)
Rebuild the ancestor path of all roles in the OU hierarchy a person
entity defines. |
source code
|
|
|
|