Exemplo 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")
     ]
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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()
    ]
Exemplo 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()
    ]
Exemplo n.º 8
0
Arquivo: proxy.py Projeto: 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")]
Exemplo 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()]
Exemplo 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()]