old_contents: from . import base
  from . import mixins
  
  
  class TransformedRecord(mixins.GenericCompensationMixin,
          mixins.GenericDepartmentMixin,
          mixins.GenericJobTitleMixin,
          mixins.MembershipMixin,
          mixins.OrganizationMixin,
          mixins.PostMixin,
          base.BaseTransformedRecord):
      MAP = {
          'department': 'Department',
          'name': 'Name',
          'job_title': 'Title',
          'last_name': 'Last Name',
          'hire_date': 'Hire Date',
          'pay_status': 'FT or PT Status',
          'compensation': 'Salary',
          'race': 'Race',  # Not used yet
      }
  
      NAME_FIELDS = ('name', )
      ORGANIZATION_NAME = 'Texas Tech University'
  
      # The data we get for Texas Tech System is always valid
      is_valid = True
  
      # All employees are full-time right now
      compensation_type = 'Full Time'
  
      @property
      def identifier(self):
          """
          Identifier by Texas Tech Systems
  
          Ignore everything but name/gender.  We have not found any
          duplicate name gender records (yet), and should not as TT
          includes middle initials.
          """
          excluded = [self.race_key, self.department_key, self.job_title_key,
                  self.hire_date_key, self.compensation_key]
          return {
              'scheme': 'tx_salaries_hash',
              'identifier': base.create_hash_for_record(self.data,
                      exclude=excluded)
          }
  
      @property
      def person(self):
          name = self.get_name()
          return {
              'family_name': name.last,
              'given_name': name.first,
              'additional_name': name.middle,
              'name': unicode(name),
          }
  
  
  transform = base.transform_factory(record_class=TransformedRecord,
          transform_func=base.generic_merge_cell_transform)
  
new_contents: from datetime import date
  
  from . import base
  from . import mixins
  
  
  class TransformedRecord(mixins.GenericCompensationMixin,
          mixins.GenericDepartmentMixin,
          mixins.GenericJobTitleMixin,
          mixins.MembershipMixin,
          mixins.OrganizationMixin,
          mixins.PostMixin,
          mixins.RaceMixin,
          mixins.LinkMixin,
          base.BaseTransformedRecord):
      MAP = {
          'department': 'Department',
          'name': 'Name',
          'job_title': 'Title',
          'last_name': 'Last Name',
          'hire_date': 'Hire Date',
          'pay_status': 'FT or PT Status',
          'compensation': 'Salary',
          'race': 'Race',
          'gender': 'Gender'
      }
  
      gender_map = {'Female': 'F', 'Femail': 'F', 'Male': 'M'}
  
      NAME_FIELDS = ('name', )
      ORGANIZATION_NAME = 'Texas Tech University'
      ORGANIZATION_CLASSIFICATION = 'University'
  
      # The data we get for Texas Tech System is always valid
      is_valid = True
  
      # All employees are full-time right now
      compensation_type = 'Full Time'
  
      DATE_PROVIDED = date(2013, 7, 31)
  
      URL = 'http://raw.texastribune.org.s3.amazonaws.com/texas_tech_university/salaries/2013-07/Faculty%20Open%20Records%20-%20Tribune.xlsx'
  
      @property
      def identifier(self):
          """
          Identifier by Texas Tech Systems
  
          Ignore everything but name/gender.  We have not found any
          duplicate name gender records (yet), and should not as TT
          includes middle initials.
          """
          excluded = [self.race_key, self.department_key, self.job_title_key,
                  self.hire_date_key, self.compensation_key]
          return {
              'scheme': 'tx_salaries_hash',
              'identifier': base.create_hash_for_record(self.data,
                      exclude=excluded)
          }
  
      @property
      def person(self):
          name = self.get_name()
          return {
              'family_name': name.last,
              'given_name': name.first,
              'additional_name': name.middle,
              'name': unicode(name),
              'gender': self.gender_map[self.gender]
          }
  
  
  transform = base.transform_factory(record_class=TransformedRecord,
          transform_func=base.generic_merge_cell_transform)
  
subject: Update Texas Tech University