Use group_site instead of groupsite
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 15:39:41 +0000 (11:39 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 15:39:41 +0000 (11:39 -0400)
sitecore/prof/__init__.py
sitecore/prof/export_mysql.py

index 0995faca1585d3b15bae72afd9e79e719c61b0a1..19cb6e280ef96f999665acd23e3bce4d674ce004 100644 (file)
@@ -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 ('<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):
index e484fc850ec1f47b7a8557d014aa77f80c3fe376..0fdfa8309568df635416e6dadafb81e827a35e11 100644 (file)
@@ -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'],