app/soc/views/models/organization.py
changeset 2938 062d5ddb15b7
parent 2782 3944749338d3
child 2945 4752074c1af3
equal deleted inserted replaced
2937:2252dc0be5db 2938:062d5ddb15b7
    18 """
    18 """
    19 
    19 
    20 __authors__ = [
    20 __authors__ = [
    21     '"Madhusudan.C.S" <madhusudancs@gmail.com>',
    21     '"Madhusudan.C.S" <madhusudancs@gmail.com>',
    22     '"Augie Fackler" <durin42@gmail.com>',
    22     '"Augie Fackler" <durin42@gmail.com>',
       
    23     '"Mario Ferraro" <fadinlight@gmail.com>',
    23     '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    24     '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    24     '"Lennard de Rijk" <ljvderijk@gmail.com>',
    25     '"Lennard de Rijk" <ljvderijk@gmail.com>',
    25   ]
    26   ]
    26 
    27 
    27 
    28 
   472           # we have not stored the information of this mentor yet
   473           # we have not stored the information of this mentor yet
   473           people[mentor_key_name] = {
   474           people[mentor_key_name] = {
   474               'type': 'mentor',
   475               'type': 'mentor',
   475               'name': mentor_entity.name(),
   476               'name': mentor_entity.name(),
   476               'lat': mentor_entity.latitude,
   477               'lat': mentor_entity.latitude,
   477               'long': mentor_entity.longitude,
   478               'lon': mentor_entity.longitude,
   478               'projects': []
   479               'projects': []
   479               }
   480               }
   480 
   481 
   481         # add this project to the mentor's list
   482         # add this project to the mentor's list
   482         people[mentor_key_name]['projects'].append(project_key_name)
   483         people[mentor_key_name]['projects'].append(project_key_name)
   486           # new student, store the name and location
   487           # new student, store the name and location
   487           people[student_key_name] = {
   488           people[student_key_name] = {
   488               'type': 'student',
   489               'type': 'student',
   489               'name': student_entity.name(),
   490               'name': student_entity.name(),
   490               'lat': student_entity.latitude,
   491               'lat': student_entity.latitude,
   491               'long': student_entity.longitude,
   492               'lon': student_entity.longitude,
   492               'projects': [],
   493               'projects': [],
   493               }
   494               }
   494 
   495 
   495         # append the current project to the known student's list of projects
   496         # append the current project to the known student's list of projects
   496         people[student_key_name]['projects'].append(project_key_name)
   497         people[student_key_name]['projects'].append(project_key_name)