Ejemplo n.º 1
0
def remove_leader_from_project(person, project):
    """Remove leader from project. """
    for name in _get_all_names():
        for datastore in _get_datastores_for_name(name):
            if hasattr(datastore, 'remove_leader_from_project'):
                datastore.remove_leader_from_project(person, institute)
Ejemplo n.º 2
0
def add_leader_to_project(person, project):
    """Add person to institute."""
    for name in _get_all_names():
        for datastore in _get_datastores_for_name(name):
            if hasattr(datastore, 'add_leader_to_project'):
                datastore.add_leader_to_project(person, institute)