From 8642a533b5a04a54fa1dad033060d8a1b9e2b63d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Jun 2010 11:39:41 -0400 Subject: [PATCH] Use group_site instead of groupsite --- sitecore/prof/__init__.py | 6 +++--- sitecore/prof/export_mysql.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sitecore/prof/__init__.py b/sitecore/prof/__init__.py index 0995fac..19cb6e2 100644 --- a/sitecore/prof/__init__.py +++ b/sitecore/prof/__init__.py @@ -106,7 +106,7 @@ class Graduation (AttributeHolder): 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): @@ -161,11 +161,11 @@ class Professor (AttributeHolder): #TODO: group to sub-field logic def sites(self): - if self.contact.groupsite == None: + if self.contact.group_site == None: return ('%s' % (self.contact.website, self.contact.website)) return ('Group Website: %s|Personal Website: %s' - % (self.contact.groupsite, self.contact.groupsite, + % (self.contact.group_site, self.contact.group_site, self.contact.website, self.contact.website)) def lab_contact(self): diff --git a/sitecore/prof/export_mysql.py b/sitecore/prof/export_mysql.py index e484fc8..0fdfa83 100644 --- a/sitecore/prof/export_mysql.py +++ b/sitecore/prof/export_mysql.py @@ -195,7 +195,7 @@ Where the relevant categories are 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'], -- 2.26.2