return '%s, %s' % (self.contact.lab, self.contact.lab_phone)
assert self.contact.lab_phone == None, unicode(self.name)
return None
+
+ def profile(self):
+ if self.bio.profile == None:
+ return None
+ return ''.join(['<p>\n%s\n</p>\n' % p
+ for p in prof.bio.profile.split('\n')])
('Title:', prof.title),
('First Name:', prof.name.first_middle),
('Last Name:', prof.name.last),
- ('Bio:', '<p>\n%s\n%</p>'+prof.bio.profile.replace(
- '\n', '\n</p>\n<p>\n')),
+ ('Bio:', prof.profile()),
('Headshot:', ('/Images/physics/headshots/%s'
% name.lower().replace('.','').replace(' ','_'))),
('Email:', prof.contact.email),