app/soc/views/helper/list_info.py
changeset 2077 fd2e83a297c7
parent 1926 d73fe91beeeb
child 2202 f6a1c141f51e
equal deleted inserted replaced
2076:1cd180cc56c9 2077:fd2e83a297c7
    29     ranking: dict with a mapping from Student Proposal to rank
    29     ranking: dict with a mapping from Student Proposal to rank
    30     assigned_proposals: list of proposals assigned a slot
    30     assigned_proposals: list of proposals assigned a slot
    31   """
    31   """
    32 
    32 
    33   def wrapper(item, _):
    33   def wrapper(item, _):
       
    34     """Decorator wrapper method.
       
    35     """
    34     info = {'rank': ranking[item]}
    36     info = {'rank': ranking[item]}
    35 
    37 
    36     if item in assigned_proposals:
    38     if item in assigned_proposals:
    37       info['item_class'] =  'selected'
    39       info['item_class'] =  'selected'
    38     else:
    40     else: