def __init__(self, raw_data):
    self.lineMatches = {'Work Type:': 'work_type', 'Hours:': 'hours', 'Start Date:': 'start_date', 'Start Time:': 'start_time', 'Duration:': 'duration', 'Accommodation:': 'accommodation', 'Open To:': 'open_to', 'Comments:': 'comments', 'Drug Testing Info:': 'drug_testing'}
    self.nameHireTag = 'Name Hired:'
    self.manpowerTag = 'Manpower  Requirements:'
    self.attribute_dictionary = {}
    self.manpower = {}
    self.name_hires = {}
    skip_line = False
    for (i, row) in enumerate(raw_data):
        if row.has_attr('bgcolor'):
            continue
        if skip_line:
            skip_line = False
            continue
        stripped = row.text.strip()
        if (not row.find('b')):
            continue
        if self.check_line_match(i, stripped, raw_data):
            skip_line = True
            continue
        if ('Job#' in stripped):
            self.id = stripped.split(u'\xa0')[(- 1)]
            print('Set Job# to {0}'.format(self.id))
            continue
        if (self.manpowerTag in stripped):
            self.manpower = self.get_multi_line(self.manpowerTag, i, raw_data)
            continue
        if (self.nameHireTag in stripped):
            self.name_hires = self.get_multi_line(self.nameHireTag, i, raw_data)
            continue
        print(repr(stripped))
    self.attribute_dictionary['manpower'] = json.dumps(self.manpower)
    self.attribute_dictionary['name_hires'] = json.dumps(self.name_hires)
    date_split = self.attribute_dictionary[self.DATE_TAG].replace('"', '').split('/')
    time_string = (self.attribute_dictionary[self.TIME_TAG].replace('"', '') + ':00')
    self.attribute_dictionary[self.DATE_TIME_TAG] = '{0}-{1}-{2} {3}'.format(date_split[2], date_split[0], date_split[1], time_string)
    del self.attribute_dictionary[self.DATE_TAG]
    del self.attribute_dictionary[self.TIME_TAG]
    print('dateTime set to: {0}'.format(repr(datetime)))
def __init__(self, raw_data):
    self.lineMatches = {'Work Type:': 'work_type', 'Hours:': 'hours', 'Start Date:': 'start_date', 'Start Time:': 'start_time', 'Duration:': 'duration', 'Accommodation:': 'accommodation', 'Open To:': 'open_to', 'Comments:': 'comments', 'Drug Testing Info:': 'drug_testing'}
    self.nameHireTag = 'Name Hired:'
    self.manpowerTag = 'Manpower  Requirements:'
    self.attribute_dictionary = {}
    self.manpower = {}
    self.name_hires = {}
    skip_line = False
    for (i, row) in enumerate(raw_data):
        if row.has_attr('bgcolor'):
            continue
        if skip_line:
            skip_line = False
            continue
        stripped = row.text.strip()
        if (not row.find('b')):
            continue
        if self.check_line_match(i, stripped, raw_data):
            skip_line = True
            continue
        if ('Job#' in stripped):
            self.id = stripped.split(u'\xa0')[(- 1)]
            print('Set Job# to {0}'.format(self.id))
            continue
        if (self.manpowerTag in stripped):
            self.manpower = self.get_multi_line(self.manpowerTag, i, raw_data)
            continue
        if (self.nameHireTag in stripped):
            self.name_hires = self.get_multi_line(self.nameHireTag, i, raw_data)
            continue
        print(repr(stripped))
    self.attribute_dictionary['manpower'] = json.dumps(self.manpower)
    self.attribute_dictionary['name_hires'] = json.dumps(self.name_hires)
    date_split = self.attribute_dictionary[self.DATE_TAG].replace('"', ).split('/')
    time_string = (self.attribute_dictionary[self.TIME_TAG].replace('"', ) + ':00')
    self.attribute_dictionary[self.DATE_TIME_TAG] = '{0}-{1}-{2} {3}'.format(date_split[2], date_split[0], date_split[1], time_string)
    del self.attribute_dictionary[self.DATE_TAG]
    del self.attribute_dictionary[self.TIME_TAG]
    print('dateTime set to: {0}'.format(repr(datetime)))