From: W. Trevor King Date: Wed, 30 Jun 2010 15:39:41 +0000 (-0400) Subject: Use group_site instead of groupsite X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8642a533b5a04a54fa1dad033060d8a1b9e2b63d;p=sitecorepy.git Use group_site instead of groupsite --- 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'],