def _create_import_item_dataTable(self, upload_id, job_id):

        s3 = current.response.s3

        represent = {"s3_import_item.element" : self._item_element_represent}
        self._use_import_item_table(job_id)

        # Add a filter to the dataTable query
        s3.filter = (self.table.job_id == job_id) & \
                    (self.table.tablename == self.controller_tablename)

        # Get a list of the records that have an error of None
        query =  (self.table.job_id == job_id) & \
                 (self.table.tablename == self.controller_tablename)
        rows = current.db(query).select(self.table.id, self.table.error)
        select_list = []
        error_list = []
        for row in rows:
            if row.error:
                error_list.append(str(row.id))
            else:
                select_list.append("%s" % row.id)

        # Experimental uploading via ajax - added for vulnerability
        if self.ajax:
            resource = self.resource
            resource.add_filter(s3.filter)
            rows = resource.select(["id", "element", "error"],
                                   limit=None)["rows"]
            return (upload_id, select_list, rows)

        s3.actions = [dict(label=str(self.messages.item_show_details),
                           _class="action-btn",
                           _jqclick="$('.importItem.'+id).toggle();",
                           ),
                      ]
        output = self._dataTable(["id", "element", "error"],
                                 sort_by = [[1, "asc"]],
                                 represent=represent,
                                 ajax_item_id=upload_id,
                                 dt_bulk_select = select_list)

        self._use_controller_table()

        if self.request.representation == "aadata":
            return output

        # Highlight rows in error in red
        s3.dataTableStyleWarning = error_list

        form = output["items"]
        job = INPUT(_type="hidden", _id="importUploadID", _name="job",
                    _value="%s" % upload_id)
        form.append(job)
        return output

    # -------------------------------------------------------------------------
Asserts that the message in a raised exception matches the passed
dataset/ETHPy150Open sahana/eden/modules/s3/s3import.py/S3Importer._create_import_item_dataTable--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/test/testcases.py/SimpleTestCase.assertRaisesMessage