fields = ['college', 'field', 'title', 'year']
class Contact (AttributeHolder):
- fields = ['office', 'email', 'website', 'groupsite',
+ fields = ['office', 'email', 'website', 'group_site',
'phone', 'lab', 'lab_phone']
class Bio (AttributeHolder):
#TODO: group to sub-field logic
def sites(self):
- if self.contact.groupsite == None:
+ if self.contact.group_site == None:
return ('<a href="%s">%s</a>'
% (self.contact.website, self.contact.website))
return ('Group Website: <a href="%s">%s</a>|Personal Website: <a href="%s">%s</a>'
- % (self.contact.groupsite, self.contact.groupsite,
+ % (self.contact.group_site, self.contact.group_site,
self.contact.website, self.contact.website))
def lab_contact(self):
office=prof['office'],
email=prof['email'],
website=prof['personalpage'],
- groupsite=prof['grouppage'],
+ group_site=prof['grouppage'],
phone=prof['phone'],
lab=prof['lab'],
lab_phone=prof['labphone'],