Esempio n. 1
0
 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")
     ]
Esempio n. 2
0
def get_ietf_chair():
    try:
        return proxy_personify_role(
            Role.objects.get(name="chair", group__acronym="ietf"))
    except Role.DoesNotExist:
        return None
Esempio n. 3
0
def get_iab_executive_director():
    try:
        return proxy_personify_role(
            Role.objects.get(name="execdir", group__acronym="iab"))
    except Person.DoesNotExist:
        return None
Esempio n. 4
0
def get_ietf_chair():
    try:
        return proxy_personify_role(Role.objects.get(name="chair", group__acronym="ietf"))
    except Role.DoesNotExist:
        return None
Esempio n. 5
0
def get_iab_executive_director():
    try:
        return proxy_personify_role(Role.objects.get(name="execdir", group__acronym="iab"))
    except Person.DoesNotExist:
        return None
Esempio n. 6
0
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()
    ]
Esempio n. 7
0
def all_sdo_managers():
    return [
        proxy_personify_role(r)
        for r in Role.objects.filter(group__type="sdo", name="liaiman").
        select_related("person").distinct()
    ]
Esempio n. 8
0
File: proxy.py Progetto: mcr/ietfdb
 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")]
Esempio n. 9
0
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()]
Esempio n. 10
0
def all_sdo_managers():
    return [proxy_personify_role(r) for r in Role.objects.filter(group__type="sdo", name="liaiman").select_related("person").distinct()]