def get_delegates(self): from ietf.group.models import Role from ietf.utils.proxy import proxy_personify_role return [ proxy_personify_role(r) for r in Role.objects.filter(group__acronym=self.slug, name="delegate") ]
def get_ietf_chair(): try: return proxy_personify_role( Role.objects.get(name="chair", group__acronym="ietf")) except Role.DoesNotExist: return None
def get_iab_executive_director(): try: return proxy_personify_role( Role.objects.get(name="execdir", group__acronym="iab")) except Person.DoesNotExist: return None
def get_ietf_chair(): try: return proxy_personify_role(Role.objects.get(name="chair", group__acronym="ietf")) except Role.DoesNotExist: return None
def get_iab_executive_director(): try: return proxy_personify_role(Role.objects.get(name="execdir", group__acronym="iab")) except Person.DoesNotExist: return None
def role_persons_with_fixed_email(group, role_name): return [ proxy_personify_role(r) for r in Role.objects.filter( group=group, name=role_name).select_related("person").distinct() ]
def all_sdo_managers(): return [ proxy_personify_role(r) for r in Role.objects.filter(group__type="sdo", name="liaiman"). select_related("person").distinct() ]
def get_delegates(self): from ietf.group.models import Role from ietf.utils.proxy import proxy_personify_role return [proxy_personify_role(r) for r in Role.objects.filter(group__acronym=self.slug, name="delegate")]
def role_persons_with_fixed_email(group, role_name): return [proxy_personify_role(r) for r in Role.objects.filter(group=group, name=role_name).select_related("person").distinct()]
def all_sdo_managers(): return [proxy_personify_role(r) for r in Role.objects.filter(group__type="sdo", name="liaiman").select_related("person").distinct()]