'Adjunct Professor']:
for prof in db.list_entries({'category':category}):
p = Professor()
- TODO
+ p.name = Name(
+ first_middle=prof['firstname'],
+ last=prof['lastname'],
+ )
+ p.title = prof['position1']
+ if len(prof['position2']) > 0:
+ p.title += ', %s' % prof['position2']
+ p.graduations = []
+ print prof['degrees']
+ for degree in prof['degrees']:
+ g.greaduations.append(
+ Graduation(
+ college=None,
+ title=None,
+ year=None,
+ )
+ )
+ p.contact = Contact(
+ office=prof['office'],
+ email=prof['email'],
+ website=prof['personalpage'],
+ phone=prof['phone'],
+ lab=prof['lab'],
+ lab_phone=prof['labphone'],
+ )
+ p.bio = Bio(
+ specialization=prof['research'], # prof['grouppage']
+ publications=None,
+ profile=prof['profile'],
+ cv=None,
+ )
+ self.logger.debug(unicode(p))
yield p